diff options
author | Simon Glass <sjg@chromium.org> | 2021-08-18 21:40:29 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-09-16 13:19:25 -0400 |
commit | 79b3f367304dc743518200eb6b82556890c9ae05 (patch) | |
tree | 1cbf4a59c2394b87dbf6c2b8a874347c730cc621 | |
parent | 127ca104677e5dd0ac4d5d991faa2ebb704da6f1 (diff) | |
download | u-boot-79b3f367304dc743518200eb6b82556890c9ae05.zip u-boot-79b3f367304dc743518200eb6b82556890c9ae05.tar.gz u-boot-79b3f367304dc743518200eb6b82556890c9ae05.tar.bz2 |
dm: core: Fix a few incorrect comments on first/next functions
Tighten up these comments to make the behaviour clearer.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | include/dm/device.h | 4 | ||||
-rw-r--r-- | include/dm/uclass.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/dm/device.h b/include/dm/device.h index 0a9718a..ef6241b 100644 --- a/include/dm/device.h +++ b/include/dm/device.h @@ -738,7 +738,7 @@ int device_find_next_child(struct udevice **devp); * * @parent: Parent device to search * @uclass_id: Uclass to look for - * @devp: Returns device found, if any + * @devp: Returns device found, if any, else NULL * @return 0 if found, else -ENODEV */ int device_find_first_inactive_child(const struct udevice *parent, @@ -750,7 +750,7 @@ int device_find_first_inactive_child(const struct udevice *parent, * * @parent: Parent device to search * @uclass_id: Uclass to look for - * @devp: Returns first child device in that uclass, if any + * @devp: Returns first child device in that uclass, if any, else NULL * @return 0 if found, else -ENODEV */ int device_find_first_child_by_uclass(const struct udevice *parent, diff --git a/include/dm/uclass.h b/include/dm/uclass.h index da0c1bf..15e5f9e 100644 --- a/include/dm/uclass.h +++ b/include/dm/uclass.h @@ -354,7 +354,7 @@ int uclass_next_device(struct udevice **devp); * 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 uclass if no error occurred, or -ENODEV if + * to the next device in the uclass if no error occurred, or NULL if * there is no next device. * @return 0 if found, -ENODEV if not found, other -ve on error */ |