gpio: gpio-aspeed-sgpio: Move irq_chip to aspeed-sgpio struct
authorSteven Lee <steven_lee@aspeedtech.com>
Mon, 12 Jul 2021 10:03:14 +0000 (18:03 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 5 Aug 2021 19:16:26 +0000 (21:16 +0200)
commit09ac953b65b167efdaac25c63f2f1786f4faa801
tree48419634fa51a632f9e6f2ecc9b22c3ba1a0d723
parent8a3581c666f97bec53baebf2ed77e4954be0384d
gpio: gpio-aspeed-sgpio: Move irq_chip to aspeed-sgpio struct

The current design initializes irq->chip from a global irqchip struct,
which causes multiple sgpio devices use the same irq_chip.
The patch moves irq_chip to aspeed_sgpio struct for initializing
irq_chip from their private gpio struct.

Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-aspeed-sgpio.c