gpio: sprd: Make the irqchip immutable
authorCixi Geng <cixi.geng1@unisoc.com>
Thu, 29 Dec 2022 14:55:45 +0000 (22:55 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 30 Dec 2022 15:59:06 +0000 (16:59 +0100)
commit9883ddf9d68db5332f08dfc7283db69f69f8d6d2
tree6b2f5be4b5d724733eff635a25ee7e75587e1136
parentbe43eea7de5a3977ac3d13fbfb9e505fab475e97
gpio: sprd: Make the irqchip immutable

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: Cixi Geng <cixi.geng1@unisoc.com>
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-sprd.c