Changeset 20247
- Timestamp:
- 2010-03-16T20:53:25+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c
r20242 r20247 39 39 int __ar71xx_gpio_get_value(unsigned gpio) 40 40 { 41 return !!(__raw_readl(ar71xx_gpio_base + GPIO_REG_IN) & (1 << gpio));41 return (__raw_readl(ar71xx_gpio_base + GPIO_REG_IN) >> gpio) & 1; 42 42 } 43 43 EXPORT_SYMBOL(__ar71xx_gpio_get_value);
Note: See TracChangeset
for help on using the changeset viewer.