gpio: ws16c48: Use irqchip template
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 22 Jul 2020 10:19:38 +0000 (12:19 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 Jul 2020 13:08:55 +0000 (15:08 +0200)
commitfceb7ab3854b7b8d13d771b9164ef0be546af673
tree1be2495fd8463905e7e02e63ba223a0551a8f9c2
parentbde8c0e64c78633612aaf283692f72bef0bbc549
gpio: ws16c48: 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/20200722101938.151265-1-linus.walleij@linaro.org
drivers/gpio/gpio-ws16c48.c