From patchwork Sun Jan 25 15:26:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 432533 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 387431401D0 for ; Mon, 26 Jan 2015 02:28:07 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 72B564B7D1; Sun, 25 Jan 2015 16:28:02 +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 pg4Z1m4eeXOz; Sun, 25 Jan 2015 16:28:02 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 731F64B7C1; Sun, 25 Jan 2015 16:27:58 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 164944B779 for ; Sun, 25 Jan 2015 16:27:52 +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 wH+Q5j0z-kfs for ; Sun, 25 Jan 2015 16:27:51 +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-qg0-f73.google.com (mail-qg0-f73.google.com [209.85.192.73]) by theia.denx.de (Postfix) with ESMTPS id B9C6F4B77A for ; Sun, 25 Jan 2015 16:27:49 +0100 (CET) Received: by mail-qg0-f73.google.com with SMTP id q107so322650qgd.0 for ; Sun, 25 Jan 2015 07:27:48 -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=0rhKxp+Ch7kl5LeD7vmgtfpDhRzeMhj08S/QK615SXw=; b=msRi0FBtnbGota86es6NGDCbVCAYJJx3kR947rPppwANLMxgb4WjgOAxKyxlFz5zKP wWX7Ht9wH6hgF04C2uI46QiKPhqEbk34TjeXwtquZ8BBRnneMyLkLW2Vz0D86UPhtRmg OGzbnTQo8uAFZlbHCRyOLBKzoKb4wgy3AJN58M4avuz1EenBjikACNyJe12d3PZEPngJ bPQVs8/QKF1C6PzFP0xwYi06LGkNPqatT54p9P+XFFYrYxC1ZghV1IC7h99NRNX7X5Tv 3XMjUX+F7pIgeAhRACQ+m9WDGgyCl29V/darlbCmqGX30ALSu+RFnD7Ybb2DRXekOgP/ e0aQ== X-Gm-Message-State: ALoCoQkc4tPjcEwqhbtYTsaDNP/WsRn6mOVsh3/mcN6TCUGlwcYcP+kNPUW/baqUgIkNxH4izrJ5 X-Received: by 10.236.22.231 with SMTP id t67mr13542820yht.19.1422199668365; Sun, 25 Jan 2015 07:27:48 -0800 (PST) Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id u27si214229yhu.4.2015.01.25.07.27.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Jan 2015 07:27:48 -0800 (PST) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTP id FoXYnPwR.1; Sun, 25 Jan 2015 07:27:48 -0800 Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id B21092205FB; Sun, 25 Jan 2015 08:27:47 -0700 (MST) From: Simon Glass To: U-Boot Mailing List Date: Sun, 25 Jan 2015 08:26:57 -0700 Message-Id: <1422199640-25811-4-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.2.0.rc0.207.ga3a616c In-Reply-To: <1422199640-25811-1-git-send-email-sjg@chromium.org> References: <1422199640-25811-1-git-send-email-sjg@chromium.org> Subject: [U-Boot] [PATCH v3 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 v3: None 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