From patchwork Tue Jan 20 03:12:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 430779 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id E9B271401DC for ; Tue, 20 Jan 2015 14:13:35 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 125FF4B694; Tue, 20 Jan 2015 04:13:33 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JBOeIRDlWvls; Tue, 20 Jan 2015 04:13:32 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B41014B698; Tue, 20 Jan 2015 04:13:22 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9BDF04B676 for ; Tue, 20 Jan 2015 04:13:16 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QXh5T0FJdkHu for ; Tue, 20 Jan 2015 04:13:16 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-yk0-f201.google.com (mail-yk0-f201.google.com [209.85.160.201]) by theia.denx.de (Postfix) with ESMTPS id 419844B675 for ; Tue, 20 Jan 2015 04:13:14 +0100 (CET) Received: by mail-yk0-f201.google.com with SMTP id q200so403697ykb.0 for ; Mon, 19 Jan 2015 19:13:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JfjrrKfrv5YEIrepUXbehUeNQtEMEdHPMlGiYnJiEOk=; b=LPvaLm4Na5etdXwuC21S5vWEn1042yl44HqfxerOwhKWXYNHujfMEfhHuzpvQDfpUN DK4mdWE1HTSnV4beaNAKY8GR+OhvCGXSfKxImDivctnrA0AOHEry/xbEnxpInEJ4xtrf nIfRjzzO9bKaNWsbkMhuXwQkzTrYP0CGNjKRELJ7mOdO9W6hUZhjHbBLr3cU7ymzUNHK DiWYiSYgm8flyBXvS1EfUnkjBzm00/yxd6SQQ8mrXBYTqL5Weky2aWiJEB9aehdIccY8 issM/5vJNT0wfWBKoecjzr27bSlLsQQWxNRq6wWCh3P4+ehbcb/UThM320uRHeBIedwK YGpw== X-Gm-Message-State: ALoCoQlH647nef4c/immZEQepJ7ky8Qzuh1T8eZFsXaHjXKTBU6UCyTu+Q2Ka9rS0TsBGwPAD17l X-Received: by 10.236.10.101 with SMTP id 65mr25549452yhu.32.1421723593131; Mon, 19 Jan 2015 19:13:13 -0800 (PST) Received: from corpmail-nozzle1-1.hot.corp.google.com ([100.108.1.104]) by gmr-mx.google.com with ESMTPS id o4si946905qcg.3.2015.01.19.19.13.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Jan 2015 19:13:13 -0800 (PST) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by corpmail-nozzle1-1.hot.corp.google.com with ESMTP id 9QWzf7tT.1; Mon, 19 Jan 2015 19:13:13 -0800 Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 61BD62207AD; Mon, 19 Jan 2015 20:13:12 -0700 (MST) From: Simon Glass To: U-Boot Mailing List Date: Mon, 19 Jan 2015 20:12:32 -0700 Message-Id: <1421723575-4532-4-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.2.0.rc0.207.ga3a616c In-Reply-To: <1421723575-4532-1-git-send-email-sjg@chromium.org> References: <1421723575-4532-1-git-send-email-sjg@chromium.org> Subject: [U-Boot] [PATCH v2 03/26] dm: core: Improve comments for uclass_first/next_device() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Mention that the devices are probed ready for use. Signed-off-by: Simon Glass --- Changes in v2: None include/dm/uclass.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/dm/uclass.h b/include/dm/uclass.h index f6ec6d7..2577ae6 100644 --- a/include/dm/uclass.h +++ b/include/dm/uclass.h @@ -141,6 +141,8 @@ int uclass_get_device_by_of_offset(enum uclass_id id, int node, /** * uclass_first_device() - Get the first device in a uclass * + * The device returned is probed if necessary, and ready for use + * * @id: Uclass ID to look up * @devp: Returns pointer to the first device in that uclass, or NULL if none * @return 0 if OK (found or not found), -1 on error @@ -150,6 +152,8 @@ int uclass_first_device(enum uclass_id id, struct udevice **devp); /** * uclass_next_device() - Get the next device in a uclass * + * The device returned is probed if necessary, and ready for use + * * @devp: On entry, pointer to device to lookup. On exit, returns pointer * to the next device in the same uclass, or NULL if none * @return 0 if OK (found or not found), -1 on error