]> git.itanic.dy.fi Git - linux-stable/commit
gpio: 104-idio-16: Make irq_chip immutable
authorWilliam Breathitt Gray <william.gray@linaro.org>
Fri, 2 Sep 2022 17:45:25 +0000 (13:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2022 10:43:50 +0000 (12:43 +0200)
commit1989b17301f8e9ea41aa78a701bc5d70af0549fd
treeb9e261e93d8b90eb89298e72168c5237c2c2c7ae
parentb240650a6600f5052f3cd9c90f4b7fbb391331df
gpio: 104-idio-16: Make irq_chip immutable

[ Upstream commit 410a5041aa60d91ff66a861560e7c879d664270f ]

Kernel warns about mutable irq_chips:

    "not an immutable chip, please consider fixing!"

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

Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-104-idio-16.c