]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-generic/gpio.h
Merge branch 'omap-pool'
[linux-2.6-omap-h63xx.git] / include / asm-generic / gpio.h
index 81797ec9ab2917413ba28d166adb267726c8f177..d6c379dc64fac63797364c7e385dc91778df5ac4 100644 (file)
@@ -55,6 +55,10 @@ struct module;
  *     handled is (base + ngpio - 1).
  * @can_sleep: flag must be set iff get()/set() methods sleep, as they
  *     must while accessing GPIO expander chips over I2C or SPI
+ * @names: if set, must be an array of strings to use as alternative
+ *      names for the GPIOs in this chip. Any entry in the array
+ *      may be NULL if there is no alias for the GPIO, however the
+ *      array must be @ngpio entries long.
  *
  * A gpio_chip can help platforms abstract various sources of GPIOs so
  * they can all be accessed through a common programing interface.
@@ -92,6 +96,7 @@ struct gpio_chip {
                                                struct gpio_chip *chip);
        int                     base;
        u16                     ngpio;
+       char                    **names;
        unsigned                can_sleep:1;
        unsigned                exported:1;
 };