summaryrefslogtreecommitdiff
path: root/include/dm/uclass.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-01-25 08:26:57 -0700
committerSimon Glass <sjg@chromium.org>2015-01-29 17:09:54 -0700
commit040b69af7209d8fe0742352f4a72719df8dda9a5 (patch)
treec52c040bff769f6a75e5f46212065842c4bb5ffe /include/dm/uclass.h
parent22cc069160dc77972b70d45c0d2558e20e9ee766 (diff)
dm: core: Improve comments for uclass_first/next_device()
Mention that the devices are probed ready for use. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm/uclass.h')
-rw-r--r--include/dm/uclass.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dm/uclass.h b/include/dm/uclass.h
index f6ec6d7e9f..2577ae6489 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