diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2023-04-04 12:43:11 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2023-04-14 12:08:17 +0300 |
commit | df60325839efcc0fa37f5ec64c0e29f5d84e56c8 (patch) | |
tree | 06ad1b48e9530bb5977f871c0ee8656ff170512c /init | |
parent | 7341944c78d544d4f96cfee3c2d56ceec94d83a4 (diff) | |
download | linux-df60325839efcc0fa37f5ec64c0e29f5d84e56c8.tar.xz |
pinctrl: sx150x: Convert to immutable irq_chip
Convert the driver to immutable irq-chip with a bit of
intuition.
I switched to consistently using irqd_to_hwirq() consistently
while we are at it.
As the driver now needs to get the gpio_chip in the .irq_mask
and .irq_unmask callbacks, I switched to a pattern where we
first fetch the gpio_chip and then the state container from
that in two steps. The compiler will do the same thing anyway.
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-9-503788a7f6e6@linaro.org
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions