Skip to content
Commit 4af2a33e authored by Alex Kiernan's avatar Alex Kiernan Committed by Tom Rini
Browse files

cmd: gpio: Make `gpio input` return pin value again



4dbc107f ("cmd: gpio: Correct do_gpio() return value") correctly
changed the behaviour of the gpio command to return CMD_RET_SUCCESS or
CMD_RET_FAILURE, but any existing script which expects the return value
to be the pin value is broken by this change.

Reinstate the legacy behaviour for `gpio input` only.

Fixes: 4dbc107f ("cmd: gpio: Correct do_gpio() return value")
Signed-off-by: default avatarAlex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: default avatarAlex Kiernan <alex.kiernan@hivehome.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent dde1b75e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment