diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-03-16 19:53:25 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-03-16 19:53:25 +0000 |
commit | d350e4cf40cd1139de9c7c33ea625f024b65db18 (patch) | |
tree | 1cc2327704b665036349154cd2a5cdebae377c3b /target/linux/ar71xx/files/arch | |
parent | be2a5c6e6518edd9e2640f1f51700e7dc850ea3f (diff) | |
download | mtk-20170518-d350e4cf40cd1139de9c7c33ea625f024b65db18.zip mtk-20170518-d350e4cf40cd1139de9c7c33ea625f024b65db18.tar.gz mtk-20170518-d350e4cf40cd1139de9c7c33ea625f024b65db18.tar.bz2 |
ar71xx: fix semantics error in the __ar71xx_gpio_get_value function.
* Thanks to Pascal Dornier
SVN-Revision: 20247
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c b/target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c index 1b5da4d..dd5b9bb 100644 --- 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); |