summaryrefslogtreecommitdiff
path: root/include/linux/gpio
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2017-11-07 21:15:54 +0300
committerLinus Walleij <linus.walleij@linaro.org>2017-11-08 16:12:01 +0300
commite0d89728981393b7d694bd3419b7794b9882c92d (patch)
tree4e8a009a3d71898f3ba4db28b32425cac190b883 /include/linux/gpio
parentca9df053fb2bb2fcc64f37a1668321c7e19edd04 (diff)
downloadlinux-e0d89728981393b7d694bd3419b7794b9882c92d.tar.xz
gpio: Implement tighter IRQ chip integration
Currently GPIO drivers are required to add the GPIO chip and its corresponding IRQ chip separately, which can result in a lot of boilerplate. Use the newly introduced struct gpio_irq_chip, embedded in struct gpio_chip, that drivers can fill in if they want the GPIO core to automatically register the IRQ chip associated with a GPIO chip. Signed-off-by: Thierry Reding <treding@nvidia.com> Acked-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/gpio')
-rw-r--r--include/linux/gpio/driver.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index c363ee198ff9..51fc7b023364 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -101,6 +101,13 @@ struct gpio_irq_chip {
unsigned int *parents;
/**
+ * @map:
+ *
+ * A list of interrupt parents for each line of a GPIO chip.
+ */
+ unsigned int *map;
+
+ /**
* @nested:
*
* True if set the interrupt handling is nested.