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>
diff --git a/common/cmd_gpio.c b/common/cmd_gpio.c
index 65d6df4..bb0f63a 100644
--- a/common/cmd_gpio.c
+++ b/common/cmd_gpio.c
@@ -141,7 +141,7 @@
#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();