Blackfin: cmd_gpio: return gpio value to caller
Make the GPIO command usable in a scripting environment by returning the GPIO value rather than always 0. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
581e97df38
commit
73b6f4046b
|
@ -108,7 +108,7 @@ int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
|
||||
gpio_free(gpio);
|
||||
|
||||
return 0;
|
||||
return value;
|
||||
}
|
||||
|
||||
U_BOOT_CMD(gpio, 3, 0, do_gpio,
|
||||
|
|
Loading…
Reference in New Issue