]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit23dea4b8725978727cc7df8edc25b1660a3a86de
treefed7b0c032e1826a549682fc0eaefeb39e1e0621
parent2d678967e299ef03a1935d17e38d837811403075
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