Skip to content
Snippets Groups Projects
Commit 0ffe6ab5 authored by Simon Glass's avatar Simon Glass
Browse files

gpio: Allow 's' as an abbreviation for 'status'


The 'gpio' command allows abbreviations for most subcommands. Allow them
for 'status' also.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 69a05048
No related branches found
No related tags found
No related merge requests found
...@@ -141,7 +141,7 @@ static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ...@@ -141,7 +141,7 @@ static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#endif #endif
if (argc > 0) if (argc > 0)
str_gpio = *argv; str_gpio = *argv;
if (!strcmp(str_cmd, "status")) { if (!strncmp(str_cmd, "status", 1)) {
/* Support deprecated gpio_status() */ /* Support deprecated gpio_status() */
#ifdef gpio_status #ifdef gpio_status
gpio_status(); gpio_status();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment