[U-Boot] [PATCH 03/15] dm: Add a return value comment to device_get_child()

Simon Glass sjg at chromium.org
Mon Jul 27 23:47:19 CEST 2015


At present this function does not specify its return value. Fix it.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 include/dm/device.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/dm/device.h b/include/dm/device.h
index 9fa0048..dd9cef4 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);
 
-- 
2.5.0.rc2.392.g76e840b



More information about the U-Boot mailing list