diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/gpio/driver.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index 656a27efb2c8..82eac610ce1a 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h | |||
| @@ -125,6 +125,13 @@ extern struct gpio_chip *gpiochip_find(void *data, | |||
| 125 | int gpiod_lock_as_irq(struct gpio_desc *desc); | 125 | int gpiod_lock_as_irq(struct gpio_desc *desc); |
| 126 | void gpiod_unlock_as_irq(struct gpio_desc *desc); | 126 | void gpiod_unlock_as_irq(struct gpio_desc *desc); |
| 127 | 127 | ||
| 128 | enum gpio_lookup_flags { | ||
| 129 | GPIO_ACTIVE_HIGH = (0 << 0), | ||
| 130 | GPIO_ACTIVE_LOW = (1 << 0), | ||
| 131 | GPIO_OPEN_DRAIN = (1 << 1), | ||
| 132 | GPIO_OPEN_SOURCE = (1 << 2), | ||
| 133 | }; | ||
| 134 | |||
| 128 | /** | 135 | /** |
| 129 | * Lookup table for associating GPIOs to specific devices and functions using | 136 | * Lookup table for associating GPIOs to specific devices and functions using |
| 130 | * platform data. | 137 | * platform data. |
| @@ -152,9 +159,9 @@ struct gpiod_lookup { | |||
| 152 | */ | 159 | */ |
| 153 | unsigned int idx; | 160 | unsigned int idx; |
| 154 | /* | 161 | /* |
| 155 | * mask of GPIOF_* values | 162 | * mask of GPIO_* values |
| 156 | */ | 163 | */ |
| 157 | unsigned long flags; | 164 | enum gpio_lookup_flags flags; |
| 158 | }; | 165 | }; |
| 159 | 166 | ||
| 160 | /* | 167 | /* |
