diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2011-12-13 12:34:01 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-04-06 00:24:06 -0400 |
commit | fc3a1f04f5040255cbc086c419e4237f29f89f88 (patch) | |
tree | 3ece85d636a3ceeffb157b77ee51b4745cbdf2d9 /include/linux/gpio.h | |
parent | dd775ae2549217d3ae09363e3edb305d0fa19928 (diff) |
gpio: add flags to export GPIOs when requesting
Introduce new flags to automatically export GPIOs when using the convenience
functions gpio_request_one() or gpio_request_array(). This eases support for
custom boards where lots of GPIOs need to be exported for customer
applications.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux/gpio.h')
-rw-r--r-- | include/linux/gpio.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/gpio.h b/include/linux/gpio.h index 6155ecf192b0..af511a682925 100644 --- a/include/linux/gpio.h +++ b/include/linux/gpio.h | |||
@@ -20,6 +20,11 @@ | |||
20 | /* Gpio pin is open source */ | 20 | /* Gpio pin is open source */ |
21 | #define GPIOF_OPEN_SOURCE (1 << 3) | 21 | #define GPIOF_OPEN_SOURCE (1 << 3) |
22 | 22 | ||
23 | #define GPIOF_EXPORT (1 << 2) | ||
24 | #define GPIOF_EXPORT_CHANGEABLE (1 << 3) | ||
25 | #define GPIOF_EXPORT_DIR_FIXED (GPIOF_EXPORT) | ||
26 | #define GPIOF_EXPORT_DIR_CHANGEABLE (GPIOF_EXPORT | GPIOF_EXPORT_CHANGEABLE) | ||
27 | |||
23 | /** | 28 | /** |
24 | * struct gpio - a structure describing a GPIO with configuration | 29 | * struct gpio - a structure describing a GPIO with configuration |
25 | * @gpio: the GPIO number | 30 | * @gpio: the GPIO number |