Skip to content
Commit 4dbc107f authored by Luka Kovacic's avatar Luka Kovacic Committed by Tom Rini
Browse files

cmd: gpio: Correct do_gpio() return value



Use the correct return value in function do_gpio() and update
commands documentation with the return values from command_ret_t enum.

CMD_RET_SUCCESS is returned on command success and CMD_RET_FAILURE is
returned on command failure.

The command was returning the pin value, which caused confusion when
debugging (#define DEBUG).

Signed-off-by: default avatarLuka Kovacic <luka.kovacic@sartura.hr>
Tested-by: default avatarRobert Marko <robert.marko@sartura.hr>
parent 96ff825d
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