summaryrefslogtreecommitdiffstats
path: root/include/dm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-07-27 15:47:19 -0600
committerSimon Glass <sjg@chromium.org>2015-08-05 08:42:42 -0600
commit3f416f336e0d87519217777a460516c5cc1310e3 (patch)
tree60f5abaf00fd20e8191a36d33525fb474b4dd17b /include/dm
parent4bad2e7374e27f08225701e2c3554404e590d8ee (diff)
downloadu-boot-3f416f336e0d87519217777a460516c5cc1310e3.tar.gz
u-boot-3f416f336e0d87519217777a460516c5cc1310e3.tar.xz
u-boot-3f416f336e0d87519217777a460516c5cc1310e3.zip
dm: Add a return value comment to device_get_child()
At present this function does not specify its return value. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/device.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/dm/device.h b/include/dm/device.h
index 9fa0048bd0..12fd02d09a 100644
--- a/include/dm/device.h
+++ b/include/dm/device.h
@@ -318,6 +318,8 @@ const char *dev_get_uclass_name(struct udevice *dev);
* @dev: Parent device to check
* @index: Child index
* @devp: Returns pointer to device
+ * @return 0 if OK, -ENODEV if no such device, other error if the device fails
+ * to probe
*/
int device_get_child(struct udevice *parent, int index, struct udevice **devp);
@@ -413,7 +415,7 @@ int device_get_global_by_of_offset(int of_offset, struct udevice **devp);
int device_find_first_child(struct udevice *parent, struct udevice **devp);
/**
- * device_find_first_child() - Find the first child of a device
+ * device_find_next_child() - Find the next child of a device
*
* @devp: Pointer to previous child device on entry. Returns pointer to next
* child device, or NULL if none