mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-05 02:50:44 +09:00
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
Block a user