]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: sch: make irq_chip immutable
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 1 Jun 2022 15:36:56 +0000 (18:36 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 6 Jun 2022 11:09:16 +0000 (14:09 +0300)
commit3170756a78cb6c2aedbecbdcc551773e32e3dcc8
tree04465cbe660c448c6609a19ebaab3e4000e05972
parentd1d0bb51bc0c9483fcec2c3607110b800e065f8f
gpio: sch: make irq_chip immutable

Since recently, the kernel is nagging about mutable irq_chips:

   "not an immutable chip, please consider fixing it!"

Drop the unneeded copy, flag it as IRQCHIP_IMMUTABLE, add the new
helper functions and call the appropriate gpiolib functions.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-sch.c