pinctrl: nomadik: Dereference gpio_chip properly
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 17 Sep 2022 20:30:35 +0000 (22:30 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 19 Sep 2022 07:02:56 +0000 (09:02 +0200)
commite5ec1f9da84324d01b7b8ec3a8bf50e8430b99a7
tree2271feeafaa156014ef29d29a8b9af7998d37ed1
parent92858eb6cb64cfafdc2b35c942d1812275f4205a
pinctrl: nomadik: Dereference gpio_chip properly

The irq data passed to irc_chip handlers i the struct gpio_chip
and nothing else. We are just lucky that the nomadik chip
pointer is first in the struct. Use the proper dereferencing
and helpers.

Reported-by: Marc Zyngier <maz@kernel.org>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220917203036.167607-1-linus.walleij@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/nomadik/pinctrl-nomadik.c