gpio: vf610: make irq_chip immutable
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Wed, 15 Feb 2023 09:52:49 +0000 (10:52 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 15 Feb 2023 14:57:59 +0000 (15:57 +0100)
commite6ef4f8ede09f4af7cde000717b349b50bc62576
tree21f01c17b8e1f466d8f70e1561e737874caf3b5a
parentceaa837f96adb69c0df0397937cd74991d5d821a
gpio: vf610: make irq_chip immutable

Since recently, the kernel is nagging about mutable irq_chips:

    "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: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-vf610.c