diff options
Diffstat (limited to 'include/asm-arm/arch-pxa/gpio.h')
-rw-r--r-- | include/asm-arm/arch-pxa/gpio.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/asm-arm/arch-pxa/gpio.h b/include/asm-arm/arch-pxa/gpio.h index 9e99241f3edf..9dbc2dc794f7 100644 --- a/include/asm-arm/arch-pxa/gpio.h +++ b/include/asm-arm/arch-pxa/gpio.h | |||
@@ -38,16 +38,8 @@ static inline void gpio_free(unsigned gpio) | |||
38 | return; | 38 | return; |
39 | } | 39 | } |
40 | 40 | ||
41 | static inline int gpio_direction_input(unsigned gpio) | 41 | extern int gpio_direction_input(unsigned gpio); |
42 | { | 42 | extern int gpio_direction_output(unsigned gpio, int value); |
43 | return pxa_gpio_mode(gpio | GPIO_IN); | ||
44 | } | ||
45 | |||
46 | static inline int gpio_direction_output(unsigned gpio, int value) | ||
47 | { | ||
48 | return pxa_gpio_mode(gpio | GPIO_OUT | | ||
49 | (value ? GPIO_DFLT_HIGH : GPIO_DFLT_LOW)); | ||
50 | } | ||
51 | 43 | ||
52 | static inline int __gpio_get_value(unsigned gpio) | 44 | static inline int __gpio_get_value(unsigned gpio) |
53 | { | 45 | { |