gpio: dwapb: Unify ACPI enumeration checks in get_irq() and configure_irqs()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 4 Aug 2021 16:00:16 +0000 (19:00 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 11 Aug 2021 12:56:43 +0000 (15:56 +0300)
commitc1b291e96a6d27ac83938596829086945ff8a36e
treec6c70cd9ee3711af9d24750f20c7d0199a8f0932
parentb390752191a6e09e8fb89625e227db0d5cc0ca33
gpio: dwapb: Unify ACPI enumeration checks in get_irq() and configure_irqs()

Shared IRQ is only enabled for ACPI enumeration, there is no need
to have a special flag for that, since we simple can test if device
has been enumerated by ACPI. This unifies the checks in dwapb_get_irq()
and dwapb_configure_irqs().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Serge Semin <fancer.lancer@gmail.com>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
drivers/gpio/gpio-dwapb.c
drivers/mfd/intel_quark_i2c_gpio.c
include/linux/platform_data/gpio-dwapb.h