gpio: 104-idio-16: Use irqchip template
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 22 Jul 2020 10:55:17 +0000 (12:55 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 Jul 2020 13:10:25 +0000 (15:10 +0200)
commit82e4613d3d14c6551dd6d96896fd1b9e966afbab
tree5ccbce5c65fb768b9b5eedc7c6d039d2f35e843d
parent44b01cf5d24286fe54301dca7a58afb8d01a1deb
gpio: 104-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/20200722105517.186137-1-linus.walleij@linaro.org
drivers/gpio/gpio-104-idio-16.c