]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit32d25836c60ed985e5d0e58e5b493fb1af873d01
tree1be2495fd8463905e7e02e63ba223a0551a8f9c2
parentc60508cfa66e5d90ce8800aaaee5a5eebd1b3b43
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