projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ramips: register gpio buttons on the Fonera 2.0N board
[openwrt.git]
/
target
/
linux
/
ramips
/
files
/
arch
/
mips
/
ralink
/
common
/
gpio.c
diff --git
a/target/linux/ramips/files/arch/mips/ralink/common/gpio.c
b/target/linux/ramips/files/arch/mips/ralink/common/gpio.c
index
3a1b038
..
892f15b
100644
(file)
--- a/
target/linux/ramips/files/arch/mips/ralink/common/gpio.c
+++ b/
target/linux/ramips/files/arch/mips/ralink/common/gpio.c
@@
-131,7
+131,7
@@
static int ramips_gpio_get(struct gpio_chip *chip, unsigned offset)
u32 t;
t = ramips_gpio_rr(rg, RAMIPS_GPIO_REG_DATA);
- return (t & (1 << offset));
+ return
!!
(t & (1 << offset));
}
static struct ramips_gpio_chip ramips_gpio_chip0 = {
This page took
0.021424 seconds
and
4
git commands to generate.