From: Simon Glass Date: Fri, 22 Jan 2016 02:43:51 +0000 (-0700) Subject: gpio: Allow 's' as an abbreviation for 'status' X-Git-Tag: v2016.03-rc1~209 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0ffe6ab521f900bcc765be8f2f31d2c2ba3f0a7e;p=u-boot 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 --- 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();