gpio: pci-idio-16: Use irqchip template
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 22 Jul 2020 11:06:49 +0000 (13:06 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 Jul 2020 13:11:26 +0000 (15:11 +0200)
commit4530a840e74eface949dc4255b66ad640c0521b9
treeeb0a0060b9fd8a9436b5b1d27f609c38635eb6c9
parent866e863edb9bdffb06b216908998d4639a7b165d
gpio: pci-idio-16: Use irqchip template

This makes the driver use the irqchip template to assign
properties to the gpio_irq_chip instead of using the
explicit call to gpiochip_irqchip_add().

The irqchip is instead added while adding the gpiochip.
Also move the IRQ initialization to the special .init_hw()
callback.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Cc: William Breathitt Gray <vilhelm.gray@gmail.com>
Link: https://lore.kernel.org/r/20200722110649.202223-1-linus.walleij@linaro.org
drivers/gpio/gpio-pci-idio-16.c