gpio: xlp: Convert to immutable irq_chip
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 20 Mar 2023 09:55:16 +0000 (10:55 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 23 Mar 2023 13:31:19 +0000 (14:31 +0100)
commit2093bcd872321a5301470978231b23cc121e3476
tree1d7dbe9f82720b9339d37041d0a00eba73f9bd64
parentb4510f8fd5d0e9afa777f115871f5d522540c417
gpio: xlp: Convert to immutable irq_chip

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

In this case the driver uses .mask_ack() and .unmask()
and since I have a vague idea about the semantics of
.mask_ack() I added .irq_enable() to the existing .irq_disable()
and called into the gpiolib core from those callbacks
instead of mask/unmask.

Cc: Marc Zyngier <maz@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-xlp.c