aboutsummaryrefslogtreecommitdiff
path: root/include/dm/pinctrl.h
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@foss.st.com>2021-05-21 09:47:31 +0200
committerTom Rini <trini@konsulko.com>2021-07-23 07:13:25 -0400
commit4c60fd993a21a285c645c6d46762d8c2992b7dd7 (patch)
treea7f42004b477837f9d5509cd5c60bb35cdd6fb79 /include/dm/pinctrl.h
parent9e6da34c72274578be6f86ba7b7aa7849a624315 (diff)
downloadu-boot-4c60fd993a21a285c645c6d46762d8c2992b7dd7.zip
u-boot-4c60fd993a21a285c645c6d46762d8c2992b7dd7.tar.gz
u-boot-4c60fd993a21a285c645c6d46762d8c2992b7dd7.tar.bz2
cmd: pinmux: update result of do_status
Update the result of do_status and always returns a CMD_RET_ value (-ENOSYS was a possible result of show_pinmux). This patch also adds pincontrol name in error messages (dev->name) and treats correctly the status sub command when pin-controller device is not selected. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm/pinctrl.h')
-rw-r--r--include/dm/pinctrl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dm/pinctrl.h b/include/dm/pinctrl.h
index 1bdc8d3..695e78a 100644
--- a/include/dm/pinctrl.h
+++ b/include/dm/pinctrl.h
@@ -587,7 +587,7 @@ int pinctrl_get_pin_muxing(struct udevice *dev, int selector, char *buf,
*
* This allows to know the number of pins owned by a given pin-controller
*
- * Return: Number of pins if OK, or negative error code on failure
+ * Return: Number of pins if OK, or -ENOSYS when not supported
*/
int pinctrl_get_pins_count(struct udevice *dev);