diff options
| author | Patrick Delaunay <[email protected]> | 2021-05-21 09:47:31 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-07-23 07:13:25 -0400 |
| commit | 4c60fd993a21a285c645c6d46762d8c2992b7dd7 (patch) | |
| tree | a7f42004b477837f9d5509cd5c60bb35cdd6fb79 /include | |
| parent | 9e6da34c72274578be6f86ba7b7aa7849a624315 (diff) | |
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
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 1bdc8d3cbd7..695e78ad0de 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); |
