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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h
index d6c379dc64fa..66d6106a2067 100644
--- a/include/asm-generic/gpio.h
+++ b/include/asm-generic/gpio.h
@@ -1,6 +1,7 @@
1#ifndef _ASM_GENERIC_GPIO_H 1#ifndef _ASM_GENERIC_GPIO_H
2#define _ASM_GENERIC_GPIO_H 2#define _ASM_GENERIC_GPIO_H
3 3
4#include <linux/kernel.h>
4#include <linux/types.h> 5#include <linux/types.h>
5#include <linux/errno.h> 6#include <linux/errno.h>
6 7
@@ -141,6 +142,8 @@ extern int __gpio_to_irq(unsigned gpio);
141 * but more typically is configured entirely from userspace. 142 * but more typically is configured entirely from userspace.
142 */ 143 */
143extern int gpio_export(unsigned gpio, bool direction_may_change); 144extern int gpio_export(unsigned gpio, bool direction_may_change);
145extern int gpio_export_link(struct device *dev, const char *name,
146 unsigned gpio);
144extern void gpio_unexport(unsigned gpio); 147extern void gpio_unexport(unsigned gpio);
145 148
146#endif /* CONFIG_GPIO_SYSFS */ 149#endif /* CONFIG_GPIO_SYSFS */
@@ -185,6 +188,12 @@ static inline int gpio_export(unsigned gpio, bool direction_may_change)
185 return -ENOSYS; 188 return -ENOSYS;
186} 189}
187 190
191static inline int gpio_export_link(struct device *dev, const char *name,
192 unsigned gpio)
193{
194 return -ENOSYS;
195}
196
188static inline void gpio_unexport(unsigned gpio) 197static inline void gpio_unexport(unsigned gpio)
189{ 198{
190} 199}