]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c998399b650f8d6daa908c3ef7691f20c331b38
treed03a6dfcf79d44a645daf0791f16378088b2ed6d
parentd40e80dffd1755605cceca476c6e79e89b2caf09
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