pinctrl: at91: Pass irqchip when adding gpiochip
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 1 Oct 2019 13:06:45 +0000 (15:06 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 16 Oct 2019 11:45:08 +0000 (13:45 +0200)
commit35dea5d746b2ba5f56fe3562d6cc1843a632d471
treee8a629ee52b5a120f999685fff22db27f6e5c6cd
parent74033d99b6d7b9df27d169144958603504e6e6fc
pinctrl: at91: Pass irqchip when adding gpiochip

We need to convert all old gpio irqchips to pass the irqchip
setup along when adding the gpio_chip. For more info see
drivers/gpio/TODO.

For chained irqchips this is a pretty straight-forward
conversion: at91 is a little bit special since it registers
up to 3 gpio_chips with the same parent handler, but just
passing girq->parent_handler and the parent on the first
of them should cut it.

Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Link: https://lore.kernel.org/r/20191001130645.8350-1-linus.walleij@linaro.org
drivers/pinctrl/pinctrl-at91.c