]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: max77620: Use irqchip template
authorDmitry Osipenko <digetx@gmail.com>
Thu, 9 Jul 2020 17:12:02 +0000 (20:12 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 16 Jul 2020 08:50:40 +0000 (10:50 +0200)
commit7401f31f1b4e85051ff00cb3243e7c1a7d006100
tree0d0fc0500a6409aaf6acfd1311c60528b12fa41f
parent0ffda779f11abcd7bb732baf298c134aac0d808a
gpio: max77620: Use irqchip template

This change addresses one of the GPIO-core TODOs for the MAX77620 driver
which requires modern drivers to use the irqchip template. Instead of
using the GPIO's irqchip-helpers for creating the IRQ domain, the
gpio_irq_chip structure is now filled by the driver itself and then
gpiochip_add_data() takes care of instantiating the IRQ domain for us.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Link: https://lore.kernel.org/r/20200709171203.12950-6-digetx@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-max77620.c