pinctrl: baytrail: make irq_chip immutable
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 12 May 2022 17:39:19 +0000 (20:39 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 16 May 2022 17:16:54 +0000 (20:16 +0300)
commit6d209b42947ae5d15b86ab220dbac52f13748c6c
treeddf054be05c789af81f6f95745d93ef3528560e8
parente9fdcc2d8376d15ea22c0e985eeca20330f8ff17
pinctrl: baytrail: 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.

While at it, switch to use hwirq variable instead of offset for
the sake of consistency.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pinctrl/intel/pinctrl-baytrail.c