projects
/
openwrt
/
staging
/
ansuel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be2a5c6
)
ar71xx: fix semantics error in the __ar71xx_gpio_get_value function.
author
Gabor Juhos
<juhosg@openwrt.org>
Tue, 16 Mar 2010 19:53:25 +0000
(19:53 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Tue, 16 Mar 2010 19:53:25 +0000
(19:53 +0000)
* Thanks to Pascal Dornier
SVN-Revision: 20247
target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c
patch
|
blob
|
history
diff --git
a/target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c
b/target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c
index 1b5da4dc400563fd31e0db8cea8c0e85ec90a2bd..dd5b9bb8d2e25b406b244036fa6d31f1cba7ebdd 100644
(file)
--- a/
target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c
+++ b/
target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c
@@
-38,7
+38,7
@@
EXPORT_SYMBOL(__ar71xx_gpio_set_value);
int __ar71xx_gpio_get_value(unsigned gpio)
{
- return
!!(__raw_readl(ar71xx_gpio_base + GPIO_REG_IN) & (1 << gpio))
;
+ return
(__raw_readl(ar71xx_gpio_base + GPIO_REG_IN) >> gpio) & 1
;
}
EXPORT_SYMBOL(__ar71xx_gpio_get_value);