drivers: clean up flags in gpio_intel_apl driver

Modify the way we test for flags as a precursor to the new GPIO API.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
This commit is contained in:
Piotr Mienkowski 2019-09-17 16:22:16 +02:00 committed by Andrew Boie
commit f98084131e

View file

@ -265,7 +265,7 @@ static int gpio_intel_apl_config(struct device *dev, int access_op,
/* setup interrupt if desired */
if (flags & GPIO_INT) {
/* invert signal for interrupt controller */
if ((flags & GPIO_INT_ACTIVE_HIGH) == GPIO_INT_ACTIVE_LOW) {
if ((flags & GPIO_INT_ACTIVE_HIGH) == 0) {
cfg0 |= PAD_CFG0_RXINV;
}