diff options
Diffstat (limited to 'include/asm-generic')
-rw-r--r-- | include/asm-generic/gpio.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index c1d4105e1c1d..39a1d06950d9 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h | |||
@@ -63,19 +63,10 @@ static inline struct gpio_chip *gpio_to_chip(unsigned gpio) | |||
63 | extern int gpio_request(unsigned gpio, const char *label); | 63 | extern int gpio_request(unsigned gpio, const char *label); |
64 | extern void gpio_free(unsigned gpio); | 64 | extern void gpio_free(unsigned gpio); |
65 | 65 | ||
66 | static inline int gpio_direction_input(unsigned gpio) | 66 | extern int gpio_direction_input(unsigned gpio); |
67 | { | 67 | extern int gpio_direction_output(unsigned gpio, int value); |
68 | return gpiod_direction_input(gpio_to_desc(gpio)); | ||
69 | } | ||
70 | static inline int gpio_direction_output(unsigned gpio, int value) | ||
71 | { | ||
72 | return gpiod_direction_output_raw(gpio_to_desc(gpio), value); | ||
73 | } | ||
74 | 68 | ||
75 | static inline int gpio_set_debounce(unsigned gpio, unsigned debounce) | 69 | extern int gpio_set_debounce(unsigned gpio, unsigned debounce); |
76 | { | ||
77 | return gpiod_set_debounce(gpio_to_desc(gpio), debounce); | ||
78 | } | ||
79 | 70 | ||
80 | static inline int gpio_get_value_cansleep(unsigned gpio) | 71 | static inline int gpio_get_value_cansleep(unsigned gpio) |
81 | { | 72 | { |