diff options
author | Simon Glass <sjg@chromium.org> | 2016-01-21 19:43:51 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-01-21 20:42:35 -0700 |
commit | 0ffe6ab521f900bcc765be8f2f31d2c2ba3f0a7e (patch) | |
tree | a9ee2bea1f7f670f9ad890b8eb5c52d9b38eefb3 /common | |
parent | 69a050483e00944e9249eb2ca3394d250df0adc4 (diff) | |
download | u-boot-0ffe6ab521f900bcc765be8f2f31d2c2ba3f0a7e.tar.gz u-boot-0ffe6ab521f900bcc765be8f2f31d2c2ba3f0a7e.tar.xz u-boot-0ffe6ab521f900bcc765be8f2f31d2c2ba3f0a7e.zip |
gpio: Allow 's' as an abbreviation for 'status'
The 'gpio' command allows abbreviations for most subcommands. Allow them
for 'status' also.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_gpio.c b/common/cmd_gpio.c index 65d6df451c..bb0f63a592 100644 --- a/common/cmd_gpio.c +++ b/common/cmd_gpio.c @@ -141,7 +141,7 @@ static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) #endif if (argc > 0) str_gpio = *argv; - if (!strcmp(str_cmd, "status")) { + if (!strncmp(str_cmd, "status", 1)) { /* Support deprecated gpio_status() */ #ifdef gpio_status gpio_status(); |