diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2017-05-23 15:47:29 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-05-29 11:07:55 +0200 |
commit | 05f479bf7d239f01ff6546f2bdeb14ad0fe65601 (patch) | |
tree | 01007d9e5d3d3093d50cb01a1c715c142c63d4d1 /drivers/gpio/gpiolib.h | |
parent | f9e3a419aa53d77a9ba348f587775aea726fcafa (diff) | |
download | linux-05f479bf7d239f01ff6546f2bdeb14ad0fe65601.tar.gz linux-05f479bf7d239f01ff6546f2bdeb14ad0fe65601.tar.bz2 linux-05f479bf7d239f01ff6546f2bdeb14ad0fe65601.zip |
gpio: Add new flags to control sleep status of GPIOs
Add new flags to allow users to specify that they are not concerned with
the status of GPIOs whilst in a sleep/low power state.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib.h')
-rw-r--r-- | drivers/gpio/gpiolib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h index 2495b7ee1b42..f74b8a763242 100644 --- a/drivers/gpio/gpiolib.h +++ b/drivers/gpio/gpiolib.h @@ -190,6 +190,7 @@ struct gpio_desc { #define FLAG_OPEN_SOURCE 8 /* Gpio is open source type */ #define FLAG_USED_AS_IRQ 9 /* GPIO is connected to an IRQ */ #define FLAG_IS_HOGGED 11 /* GPIO is hogged */ +#define FLAG_SLEEP_MAY_LOOSE_VALUE 12 /* GPIO may loose value in sleep */ /* Connection label */ const char *label; |