pinctrl: mcp23s08: Allocate irq_chip dynamic
authorLars Poeschel <poeschel@lemonage.de>
Fri, 11 Jan 2019 16:25:16 +0000 (17:25 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 21 Jan 2019 13:19:25 +0000 (14:19 +0100)
commit19ab5ca9b77d8b30a00cd3b7474d9c1f87df5c0a
tree5cc4ad18a1510f08b9b274bb422e60c3df379fad
parentf4f1b074691288d024a72601463011b6afd8ac75
pinctrl: mcp23s08: Allocate irq_chip dynamic

Keeping the irq_chip definition static shares it with multiple instances
of the mcp23s08 gpiochip in the system. This is bad and now we get this
warning from gpiolib core:

"detected irqchip that is shared with multiple gpiochips: please fix the
driver."

Hence, move the irq_chip definition from being driver static into the
struct mcp23s08. So a unique irq_chip is used for each gpiochip
instance.

Signed-off-by: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-mcp23s08.c