]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: pinmux: update result of do_status
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 21 May 2021 07:47:31 +0000 (09:47 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 23 Jul 2021 11:13:25 +0000 (07:13 -0400)
commit92ceb94d593e1139130036eb3b4c1ea5cf1f25bb
treea7f42004b477837f9d5509cd5c60bb35cdd6fb79
parentcb21cb135beab9b00e1468412d793352f2a827f1
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>
cmd/pinmux.c
include/dm/pinctrl.h
test/py/tests/test_pinmux.py