diff options
Diffstat (limited to 'include/linux/gpio')
| -rw-r--r-- | include/linux/gpio/driver.h | 3 | ||||
| -rw-r--r-- | include/linux/gpio/machine.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index 393582867afd..af20369ec8e7 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h | |||
| @@ -213,6 +213,9 @@ bool gpiochip_line_is_irq(struct gpio_chip *chip, unsigned int offset); | |||
| 213 | bool gpiochip_line_is_open_drain(struct gpio_chip *chip, unsigned int offset); | 213 | bool gpiochip_line_is_open_drain(struct gpio_chip *chip, unsigned int offset); |
| 214 | bool gpiochip_line_is_open_source(struct gpio_chip *chip, unsigned int offset); | 214 | bool gpiochip_line_is_open_source(struct gpio_chip *chip, unsigned int offset); |
| 215 | 215 | ||
| 216 | /* Sleep persistence inquiry for drivers */ | ||
| 217 | bool gpiochip_line_is_persistent(struct gpio_chip *chip, unsigned int offset); | ||
| 218 | |||
| 216 | /* get driver data */ | 219 | /* get driver data */ |
| 217 | void *gpiochip_get_data(struct gpio_chip *chip); | 220 | void *gpiochip_get_data(struct gpio_chip *chip); |
| 218 | 221 | ||
diff --git a/include/linux/gpio/machine.h b/include/linux/gpio/machine.h index c0d712d22b07..13adadf53c09 100644 --- a/include/linux/gpio/machine.h +++ b/include/linux/gpio/machine.h | |||
| @@ -9,6 +9,8 @@ enum gpio_lookup_flags { | |||
| 9 | GPIO_ACTIVE_LOW = (1 << 0), | 9 | GPIO_ACTIVE_LOW = (1 << 0), |
| 10 | GPIO_OPEN_DRAIN = (1 << 1), | 10 | GPIO_OPEN_DRAIN = (1 << 1), |
| 11 | GPIO_OPEN_SOURCE = (1 << 2), | 11 | GPIO_OPEN_SOURCE = (1 << 2), |
| 12 | GPIO_SLEEP_MAINTAIN_VALUE = (0 << 3), | ||
| 13 | GPIO_SLEEP_MAY_LOOSE_VALUE = (1 << 3), | ||
| 12 | }; | 14 | }; |
| 13 | 15 | ||
| 14 | /** | 16 | /** |
