pinctrl: qcom: spmi-gpio: fix warning about irq chip reusage
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 4 Jun 2020 00:28:17 +0000 (03:28 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 16 Jun 2020 08:19:53 +0000 (10:19 +0200)
commit5e50311556c9f409a85740e3cb4c4511e7e27da0
treea50f608dfe07f81af0dfc9d1934a3de76b456f15
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
pinctrl: qcom: spmi-gpio: fix warning about irq chip reusage

Fix the following warnings caused by reusage of the same irq_chip
instance for all spmi-gpio gpio_irq_chip instances. Instead embed
irq_chip into pmic_gpio_state struct.

gpio gpiochip2: (c440000.qcom,spmi:pmic@2:gpio@c000): detected irqchip that is shared with multiple gpiochips: please fix the driver.
gpio gpiochip3: (c440000.qcom,spmi:pmic@4:gpio@c000): detected irqchip that is shared with multiple gpiochips: please fix the driver.
gpio gpiochip4: (c440000.qcom,spmi:pmic@a:gpio@c000): detected irqchip that is shared with multiple gpiochips: please fix the driver.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20200604002817.667160-1-dmitry.baryshkov@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-spmi-gpio.c