ar71xx: fix semantics error in the __ar71xx_gpio_get_value function.
* Thanks to Pascal Dornier SVN-Revision: 20247
This commit is contained in:
parent
be2a5c6e65
commit
d350e4cf40
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue