aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/gpio
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-12-09 08:04:37 -0500
committerLinus Walleij <linus.walleij@linaro.org>2013-12-09 08:04:37 -0500
commitbdc54ef45d7670aeb52ce73f8b7ad5f3e5563661 (patch)
treeda6e170ce87891a0242de88d8d7c1ba34faf9bb7 /include/linux/gpio
parent33e0aae11e4854c792e9871f94da6d28bf2e2bb8 (diff)
parent374b105797c3d4f29c685f3be535c35f5689b30e (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.h14
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
6struct device; 7struct device;
7struct gpio_desc; 8struct gpio_desc;
9struct of_phandle_args;
10struct device_node;
8struct seq_file; 11struct seq_file;
9 12
10/** 13/**
@@ -126,6 +129,13 @@ extern struct gpio_chip *gpiochip_find(void *data,
126int gpiod_lock_as_irq(struct gpio_desc *desc); 129int gpiod_lock_as_irq(struct gpio_desc *desc);
127void gpiod_unlock_as_irq(struct gpio_desc *desc); 130void gpiod_unlock_as_irq(struct gpio_desc *desc);
128 131
132enum 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/*