diff options
author | Thierry Reding <treding@nvidia.com> | 2017-11-07 13:15:55 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-11-08 08:14:09 -0500 |
commit | 1b95b4eb567aab1cafcdcb14c60a7dd9d56236a9 (patch) | |
tree | 02b39bdee7fac6fe8bcd485fdbce2a1ac9b6d982 /include/linux/gpio/driver.h | |
parent | e0d89728981393b7d694bd3419b7794b9882c92d (diff) |
gpio: Export gpiochip_irq_{map,unmap}()
Export these functions so that drivers can explicitly use these when
setting up their IRQ domain.
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/driver.h')
-rw-r--r-- | include/linux/gpio/driver.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index 51fc7b023364..bbe5c647f29d 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h | |||
@@ -367,6 +367,10 @@ int bgpio_init(struct gpio_chip *gc, struct device *dev, | |||
367 | 367 | ||
368 | #ifdef CONFIG_GPIOLIB_IRQCHIP | 368 | #ifdef CONFIG_GPIOLIB_IRQCHIP |
369 | 369 | ||
370 | int gpiochip_irq_map(struct irq_domain *d, unsigned int irq, | ||
371 | irq_hw_number_t hwirq); | ||
372 | void gpiochip_irq_unmap(struct irq_domain *d, unsigned int irq); | ||
373 | |||
370 | void gpiochip_set_chained_irqchip(struct gpio_chip *gpiochip, | 374 | void gpiochip_set_chained_irqchip(struct gpio_chip *gpiochip, |
371 | struct irq_chip *irqchip, | 375 | struct irq_chip *irqchip, |
372 | unsigned int parent_irq, | 376 | unsigned int parent_irq, |