mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
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>
This commit is contained in:
parent
69a050483e
commit
0ffe6ab521
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue