gpio: pca953x: Use PCA_LATCH_INT
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 5 Mar 2019 09:13:46 +0000 (11:13 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 8 Mar 2019 13:11:30 +0000 (14:11 +0100)
commit2870b3c54ca75cdacf92e20f5b518de770f0dbc9
tree8f740d1f11fed70a02e1d1517f46f8b143f54fc1
parenta422bf11bdb4b95fc78e175339e8eed501e9c13c
gpio: pca953x: Use PCA_LATCH_INT

The commit 0cdf21b34e30

  ("gpio: pca953x: set the PCA_PCAL flag also when matching by DT")

introduces a helper macro which tells that chip supports latched interrupts,
but the macro was never used for ACPI or legacy enumeration.

So, make use of it for legacy and ACPI enumeration.

Cc: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pca953x.c