dm: core: improve uclass_get_device_by_phandle_id() description
authorDario Binacchi <dariobin@libero.it>
Sun, 11 Oct 2020 12:25:46 +0000 (14:25 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2020 15:26:14 +0000 (11:26 -0400)
Complete the devp parameter description.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/dm/uclass.h

index 67ff746..7188304 100644 (file)
@@ -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
  */