platform/x86: intel_int0002_vgpio: Pass irqchip when adding gpiochip
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 22 Oct 2019 21:01:28 +0000 (23:01 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 26 Oct 2019 23:10:58 +0000 (02:10 +0300)
commit4a8d82cdec16fac619f1bc9a664be5d78c514316
treef5250433b7443477f58a6562410d5a1aeb561c3b
parentfa2a590d0d024eb3a048d817029959bef90bd191
platform/x86: intel_int0002_vgpio: Pass irqchip when adding gpiochip

We need to convert all old gpio irqchips to pass the irqchip
setup along when adding the gpio_chip. For more info see
drivers/gpio/TODO.

For chained irqchips this is a pretty straight-forward
conversion. This driver requests the IRQ directly in the driver
so it needs to pass a NULL parent handler. We may revisit this
code later and pull reqular shared IRQ handler into
gpiolib, so leave a FIXME.

Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_int0002_vgpio.c