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