aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/gpio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/gpio.h')
-rw-r--r--include/asm-generic/gpio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h
index 66d6106a2067..204bed37e82d 100644
--- a/include/asm-generic/gpio.h
+++ b/include/asm-generic/gpio.h
@@ -28,6 +28,7 @@ static inline int gpio_is_valid(int number)
28 return ((unsigned)number) < ARCH_NR_GPIOS; 28 return ((unsigned)number) < ARCH_NR_GPIOS;
29} 29}
30 30
31struct device;
31struct seq_file; 32struct seq_file;
32struct module; 33struct module;
33 34
@@ -181,6 +182,8 @@ static inline void gpio_set_value_cansleep(unsigned gpio, int value)
181 182
182#ifndef CONFIG_GPIO_SYSFS 183#ifndef CONFIG_GPIO_SYSFS
183 184
185struct device;
186
184/* sysfs support is only available with gpiolib, where it's optional */ 187/* sysfs support is only available with gpiolib, where it's optional */
185 188
186static inline int gpio_export(unsigned gpio, bool direction_may_change) 189static inline int gpio_export(unsigned gpio, bool direction_may_change)