]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite25d4c94c49217b131919cdabafb4307e4d83d24
treeeb0a0060b9fd8a9436b5b1d27f609c38635eb6c9
parent8bdc28d8cd1f68b3ee6cb198349ea9f9b5da99b1
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