]> git.itanic.dy.fi Git - linux-stable/commit
gpio: 104-dio-48e: Make irq_chip immutable
authorWilliam Breathitt Gray <william.gray@linaro.org>
Fri, 2 Sep 2022 17:45:23 +0000 (13:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2022 10:43:49 +0000 (12:43 +0200)
commitb240650a6600f5052f3cd9c90f4b7fbb391331df
treeafd0d50f5770582f8cdfaa4234886232475fb139
parente18b2e3310f0ba4fa1e6c518ece9e429ecaa7fad
gpio: 104-dio-48e: Make irq_chip immutable

[ Upstream commit 35f0aa7727b092520bf91374768a4fdafd4a4fe3 ]

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-dio-48e.c