aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/gpio
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2016-09-23 14:51:18 +0200
committerLinus Walleij <linus.walleij@linaro.org>2016-09-23 14:51:18 +0200
commit22a5db98a30ea734c29056b0d59cb4fe2a383bc2 (patch)
treed1d5b3ee914e95f00b917ebf48b59fe8331a5734 /include/linux/gpio
parentARM: omap2: fix missing include (diff)
parentgpiolib: Make it possible to exclude GPIOs from IRQ domain (diff)
downloadlinux-dev-22a5db98a30ea734c29056b0d59cb4fe2a383bc2.tar.xz
linux-dev-22a5db98a30ea734c29056b0d59cb4fe2a383bc2.zip
Merge branch 'gpio-irq-validmask' of /home/linus/linux-pinctrl into devel
Diffstat (limited to 'include/linux/gpio')
-rw-r--r--include/linux/gpio/driver.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index 216e6f275aa8..1f0be7213e6d 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -112,6 +112,10 @@ enum single_ended_mode {
* initialization, provided by GPIO driver
* @irq_parent: GPIO IRQ chip parent/bank linux irq number,
* provided by GPIO driver
+ * @irq_need_valid_mask: If set core allocates @irq_valid_mask with all
+ * bits set to one
+ * @irq_valid_mask: If not %NULL holds bitmask of GPIOs which are valid to
+ * be included in IRQ domain of the chip
* @lock_key: per GPIO IRQ chip lockdep class
*
* A gpio_chip can help platforms abstract various sources of GPIOs so
@@ -190,6 +194,8 @@ struct gpio_chip {
irq_flow_handler_t irq_handler;
unsigned int irq_default_type;
int irq_parent;
+ bool irq_need_valid_mask;
+ unsigned long *irq_valid_mask;
struct lock_class_key *lock_key;
#endif