pinctrl: npcm7xx: Convert to immutable irq_chip
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 4 Apr 2023 09:43:06 +0000 (11:43 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 14 Apr 2023 09:08:17 +0000 (11:08 +0200)
commitdcea54b7dad1b39757949d3e97a5eead161e8f0d
treee5c633f6a2192817f8e1c3a563d2a7a1901564d3
parentdccdc09199b78cf3e24ec6becb70eb9a3c039d24
pinctrl: npcm7xx: Convert to immutable irq_chip

Convert the driver to immutable irq-chip with a bit of
intuition.

I refactored the way the state container was accessed in
the irq_chip callbacks to all look the same and switch to
use irqd_to_hwirq() while we are at it.

Cc: Marc Zyngier <maz@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230403-immutable-irqchips-v1-4-503788a7f6e6@linaro.org
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c