diff options
author | Michal Suchanek | 2022-09-27 23:24:36 +0200 |
---|---|---|
committer | Simon Glass | 2022-10-29 07:36:33 -0600 |
commit | 73f8fbc532c3546dd4bf6f267e530a82f04703fa (patch) | |
tree | 40eb5acd27bbb5ff429a2860dfad1a2c45695891 /include/dm | |
parent | 58ddb937e1699de241e4aa39de90a68a0be71744 (diff) |
dm: core: Document return value of device bind functions
These functions use device_bind_with_driver_data internally, copy the
return value description.
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Diffstat (limited to 'include/dm')
-rw-r--r-- | include/dm/lists.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dm/lists.h b/include/dm/lists.h index fc3b4ae5850..97236f8fa0d 100644 --- a/include/dm/lists.h +++ b/include/dm/lists.h @@ -73,6 +73,7 @@ int lists_bind_fdt(struct udevice *parent, ofnode node, struct udevice **devp, * @drv_name: Name of driver to attach to this parent * @dev_name: Name of the new device thus created * @devp: If non-NULL, returns the newly bound device + * Return: 0 if OK, -ve on error */ int device_bind_driver(struct udevice *parent, const char *drv_name, const char *dev_name, struct udevice **devp); @@ -88,6 +89,7 @@ int device_bind_driver(struct udevice *parent, const char *drv_name, * @dev_name: Name of the new device thus created * @node: Device tree node * @devp: If non-NULL, returns the newly bound device + * Return: 0 if OK, -ve on error */ int device_bind_driver_to_node(struct udevice *parent, const char *drv_name, const char *dev_name, ofnode node, |