ar7: improve search for image start (thanks matteo), add support for avm eva
[openwrt.git] / target / linux / ar7-2.6 / files / include / asm-generic / gpio.h
1 #ifndef _ASM_GENERIC_GPIO_H
2 #define _ASM_GENERIC_GPIO_H
3
4 /* platforms that don't directly support access to GPIOs through I2C, SPI,
5 * or other blocking infrastructure can use these wrappers.
6 */
7
8 static inline int gpio_cansleep(unsigned gpio)
9 {
10 return 0;
11 }
12
13 static inline int gpio_get_value_cansleep(unsigned gpio)
14 {
15 might_sleep();
16 return gpio_get_value(gpio);
17 }
18
19 static inline void gpio_set_value_cansleep(unsigned gpio, int value)
20 {
21 might_sleep();
22 gpio_set_value(gpio, value);
23 }
24
25 #endif /* _ASM_GENERIC_GPIO_H */
This page took 0.041762 seconds and 5 git commands to generate.