pinctrl: microchip-sgpio: make irq_chip immutable
authorMichael Walle <michael@walle.cc>
Thu, 28 Apr 2022 11:16:22 +0000 (13:16 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 5 May 2022 14:53:25 +0000 (16:53 +0200)
commit646e321f332ba9328ad573d3d88d9a26032e8761
treef442fa2bd03a7972ea02a29b84012cef0dab5581
parent160625856d324c27888ccbbe7693475b2706bd3b
pinctrl: microchip-sgpio: make irq_chip immutable

Since recently, the kernel is nagging about mutable irq_chips:

[    4.967050] gpio gpiochip1: (e2004190.gpio-input): not an immutable chip, please consider fixing it!

Drop the unneeded copy, flag it as IRQCHIP_IMMUTABLE, add the new
helper functions and call the appropriate gpiolib functions.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220428111622.1395831-1-michael@walle.cc
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-microchip-sgpio.c