]> git.baikalelectronics.ru Git - kernel.git/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)
committerBartosz Golaszewski <brgl@bgdev.pl>
Sat, 3 Sep 2022 20:56:10 +0000 (22:56 +0200)
commit35f0aa7727b092520bf91374768a4fdafd4a4fe3
treee776c2d4c28f4804e499ce9045bf2fc27b898403
parentee0175b3b44288c74d5292c2a9c2c154f6c0317e
gpio: 104-dio-48e: Make irq_chip immutable

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>
drivers/gpio/gpio-104-dio-48e.c