projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
581e97d
)
Blackfin: cmd_gpio: return gpio value to caller
author
Mike Frysinger
<vapier@gentoo.org>
Mon, 20 Sep 2010 17:46:29 +0000
(13:46 -0400)
committer
Mike Frysinger
<vapier@gentoo.org>
Sat, 2 Oct 2010 20:00:39 +0000
(16:00 -0400)
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>
arch/blackfin/cpu/cmd_gpio.c
patch
|
blob
|
history
diff --git
a/arch/blackfin/cpu/cmd_gpio.c
b/arch/blackfin/cpu/cmd_gpio.c
index 5988da7917107c11f94794018ab503c0cc055d51..3e7ba0a347d28b414c0c1e11e89161a5d27c0de3 100644
(file)
--- a/
arch/blackfin/cpu/cmd_gpio.c
+++ b/
arch/blackfin/cpu/cmd_gpio.c
@@
-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,