gpio: 104-idi-48: Use irqchip template
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 22 Jul 2020 10:48:20 +0000 (12:48 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 Jul 2020 13:09:54 +0000 (15:09 +0200)
commit44b01cf5d24286fe54301dca7a58afb8d01a1deb
treed03a6dfcf79d44a645daf0791f16378088b2ed6d
parent2fa1d392cdf49d9785f2fc67acca3c8db9a99036
gpio: 104-idi-48: 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/20200722104820.174654-1-linus.walleij@linaro.org
drivers/gpio/gpio-104-idi-48.c