mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-27 14:21:06 +02:00
ar71xx: fix semantics error in the __ar71xx_gpio_get_value function.
* Thanks to Pascal Dornier git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20247 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
dbded6f226
commit
098e39f5c6
@ -38,7 +38,7 @@ EXPORT_SYMBOL(__ar71xx_gpio_set_value);
|
|||||||
|
|
||||||
int __ar71xx_gpio_get_value(unsigned gpio)
|
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);
|
EXPORT_SYMBOL(__ar71xx_gpio_get_value);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user