gpiolib: allow exported GPIO nodes to be named using sysfs links
[pandora-kernel.git] / include / linux / gpio.h
index e10c49a..059bd18 100644 (file)
@@ -12,6 +12,8 @@
 #include <linux/types.h>
 #include <linux/errno.h>
 
+struct device;
+
 /*
  * Some platforms don't support the GPIO programming interface.
  *
@@ -89,6 +91,15 @@ static inline int gpio_export(unsigned gpio, bool direction_may_change)
        return -EINVAL;
 }
 
+static inline int gpio_export_link(struct device *dev, const char *name,
+                               unsigned gpio)
+{
+       /* GPIO can never have been exported */
+       WARN_ON(1);
+       return -EINVAL;
+}
+
+
 static inline void gpio_unexport(unsigned gpio)
 {
        /* GPIO can never have been exported */