提交 0ffe6ab5 编写于 作者: S Simon Glass

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

The 'gpio' command allows abbreviations for most subcommands. Allow them
for 'status' also.
Signed-off-by: NSimon Glass <sjg@chromium.org>
上级 69a05048
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册