]> asedeno.scripts.mit.edu Git - linux.git/commit
pinctrl: bcm2835: Pass irqchip when adding gpiochip
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 12 Aug 2019 06:27:29 +0000 (08:27 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 26 Aug 2019 11:21:53 +0000 (13:21 +0200)
commit73345a18d464b1b945b29f54f630ace6873344e2
tree3cd984a7eb908f94a3d620706245cf7c0111289e
parent7c772bed431c34331cd211404aa43998e8312416
pinctrl: bcm2835: 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. The BCM2835 has multiple parents so let's
exploit the new facility in the GPIO_IRQCHIP to actually
deal with multiple parents.

Cc: Eric Anholt <eric@anholt.net>
Cc: Thierry Reding <treding@nvidia.com>
[Rebased on changes in the pinctrl tree]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Link: https://lore.kernel.org/r/20190812062729.1892-1-linus.walleij@linaro.org
drivers/pinctrl/bcm/pinctrl-bcm2835.c