diff options
| author | Linus Walleij <linus.walleij@linaro.org> | 2013-12-09 08:04:37 -0500 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2013-12-09 08:04:37 -0500 |
| commit | bdc54ef45d7670aeb52ce73f8b7ad5f3e5563661 (patch) | |
| tree | da6e170ce87891a0242de88d8d7c1ba34faf9bb7 /include/linux/gpio | |
| parent | 33e0aae11e4854c792e9871f94da6d28bf2e2bb8 (diff) | |
| parent | 374b105797c3d4f29c685f3be535c35f5689b30e (diff) | |
Merge tag 'v3.13-rc3' into devel
Linux 3.13-rc3
Diffstat (limited to 'include/linux/gpio')
| -rw-r--r-- | include/linux/gpio/driver.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index 804ec45365b7..c849676c6787 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h | |||
| @@ -2,9 +2,12 @@ | |||
| 2 | #define __LINUX_GPIO_DRIVER_H | 2 | #define __LINUX_GPIO_DRIVER_H |
| 3 | 3 | ||
| 4 | #include <linux/types.h> | 4 | #include <linux/types.h> |
| 5 | #include <linux/module.h> | ||
| 5 | 6 | ||
| 6 | struct device; | 7 | struct device; |
| 7 | struct gpio_desc; | 8 | struct gpio_desc; |
| 9 | struct of_phandle_args; | ||
| 10 | struct device_node; | ||
| 8 | struct seq_file; | 11 | struct seq_file; |
| 9 | 12 | ||
| 10 | /** | 13 | /** |
| @@ -126,6 +129,13 @@ extern struct gpio_chip *gpiochip_find(void *data, | |||
| 126 | int gpiod_lock_as_irq(struct gpio_desc *desc); | 129 | int gpiod_lock_as_irq(struct gpio_desc *desc); |
| 127 | void gpiod_unlock_as_irq(struct gpio_desc *desc); | 130 | void gpiod_unlock_as_irq(struct gpio_desc *desc); |
| 128 | 131 | ||
| 132 | enum gpio_lookup_flags { | ||
| 133 | GPIO_ACTIVE_HIGH = (0 << 0), | ||
| 134 | GPIO_ACTIVE_LOW = (1 << 0), | ||
| 135 | GPIO_OPEN_DRAIN = (1 << 1), | ||
| 136 | GPIO_OPEN_SOURCE = (1 << 2), | ||
| 137 | }; | ||
| 138 | |||
| 129 | /** | 139 | /** |
| 130 | * Lookup table for associating GPIOs to specific devices and functions using | 140 | * Lookup table for associating GPIOs to specific devices and functions using |
| 131 | * platform data. | 141 | * platform data. |
| @@ -153,9 +163,9 @@ struct gpiod_lookup { | |||
| 153 | */ | 163 | */ |
| 154 | unsigned int idx; | 164 | unsigned int idx; |
| 155 | /* | 165 | /* |
| 156 | * mask of GPIOF_* values | 166 | * mask of GPIO_* values |
| 157 | */ | 167 | */ |
| 158 | unsigned long flags; | 168 | enum gpio_lookup_flags flags; |
| 159 | }; | 169 | }; |
| 160 | 170 | ||
| 161 | /* | 171 | /* |
