diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2021-05-21 10:47:31 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-07-23 14:13:25 +0300 |
commit | 4c60fd993a21a285c645c6d46762d8c2992b7dd7 (patch) | |
tree | a7f42004b477837f9d5509cd5c60bb35cdd6fb79 /include | |
parent | 9e6da34c72274578be6f86ba7b7aa7849a624315 (diff) | |
download | u-boot-4c60fd993a21a285c645c6d46762d8c2992b7dd7.tar.xz |
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')
-rw-r--r-- | include/dm/pinctrl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dm/pinctrl.h b/include/dm/pinctrl.h index 1bdc8d3cbd..695e78ad0d 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); |