[PATCH 2/2 v1] cmd: gpio: Add the command return value to the help text

luka.kovacic at sartura.hr luka.kovacic at sartura.hr
Mon Jan 27 07:30:20 CET 2020


From: Luka Kovacic <luka.kovacic at sartura.hr>

Adds the command return value to the help text, since pin value
is returned.

Cc: Luka Perkov <luka.perkov at sartura.hr>
Signed-off-by: Luka Kovacic <luka.kovacic at sartura.hr>
---
 cmd/gpio.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmd/gpio.c b/cmd/gpio.c
index eff36ab2af..e57d3fb638 100644
--- a/cmd/gpio.c
+++ b/cmd/gpio.c
@@ -245,5 +245,6 @@ static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 U_BOOT_CMD(gpio, 4, 0, do_gpio,
 	   "query and control gpio pins",
 	   "<input|set|clear|toggle> <pin>\n"
-	   "    - input/set/clear/toggle the specified pin\n"
+	   "    - input/set/clear/toggle the specified pin; pin value is\n"
+	   "      returned.\n"
 	   "gpio status [-a] [<bank> | <pin>]  - show [all/claimed] GPIOs");
-- 
2.20.1



More information about the U-Boot mailing list