pinctrl: ocelot: Make irq_chip immutable
authorMichael Walle <michael@walle.cc>
Wed, 6 Jul 2022 15:15:53 +0000 (17:15 +0200)
committerMarc Zyngier <maz@kernel.org>
Sat, 16 Jul 2022 10:47:45 +0000 (11:47 +0100)
commit51ff93923e21ed2862e83f208706e3ca31d6f409
treefed7b0c032e1826a549682fc0eaefeb39e1e0621
parentef6e5d61eb7a0a30f776a829274573094185d03d
pinctrl: ocelot: Make irq_chip immutable

Since recently, the kernel is nagging about mutable irq_chips:

[    2.593426] gpio gpiochip0: (ocelot-gpio): not an immutable chip, please consider fixing it!

Make it const, flag it as IRQCHIP_IMMUTABLE, add the new helper
functions and call the appropriate gpiolib functions.

Signed-off-by: Michael Walle <michael@walle.cc>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220706151553.1580790-2-michael@walle.cc
drivers/pinctrl/pinctrl-ocelot.c