gpio: Implement tighter IRQ chip integration
authorThierry Reding <treding@nvidia.com>
Tue, 7 Nov 2017 18:15:54 +0000 (19:15 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 8 Nov 2017 13:12:01 +0000 (14:12 +0100)
commite0d89728981393b7d694bd3419b7794b9882c92d
tree4e8a009a3d71898f3ba4db28b32425cac190b883
parentca9df053fb2bb2fcc64f37a1668321c7e19edd04
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>
drivers/gpio/gpiolib.c
include/linux/gpio/driver.h