[PATCH 23/31] dm: core: improve uclass_get_device_by_phandle_id() description

Dario Binacchi dariobin at libero.it
Tue Aug 25 11:21:16 CEST 2020


Complete the devp parameter description.

Signed-off-by: Dario Binacchi <dariobin at libero.it>
---

 include/dm/uclass.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/dm/uclass.h b/include/dm/uclass.h
index 67ff7466c8..7188304304 100644
--- a/include/dm/uclass.h
+++ b/include/dm/uclass.h
@@ -224,7 +224,8 @@ int uclass_get_device_by_ofnode(enum uclass_id id, ofnode node,
  *
  * @id: uclass ID to look up
  * @phandle_id: the phandle id to look up
- * @devp: Returns pointer to device (there is only one for each node)
+ * @devp: Returns pointer to device (there is only one for each node). NULL if
+ *	there is no such device.
  * @return 0 if OK, -ENODEV if there is no device match the phandle, other
  *	-ve on error
  */
-- 
2.17.1



More information about the U-Boot mailing list