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:
parent
dc553f8fde
commit
f98084131e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue