]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: 104-idi-48: Make irq_chip immutable
authorWilliam Breathitt Gray <william.gray@linaro.org>
Fri, 2 Sep 2022 17:45:24 +0000 (13:45 -0400)
committerBartosz Golaszewski <brgl@bgdev.pl>
Sat, 3 Sep 2022 20:56:17 +0000 (22:56 +0200)
commit40b39f5dc63056e8eeb2db3b7f62849fd3ad75c5
tree965a16bb2b2b714172da58f0de83d4b4205299e3
parent50d4bfcde340264f75f952d8ef10c7faabfffd7b
gpio: 104-idi-48: 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-idi-48.c