Commit 2487a812 authored by Kent Gibson's avatar Kent Gibson Committed by Bartosz Golaszewski

gpiolib: cdev: simplify parameter in call to hte_edge_setup

Improve readability by using the GPIO_V2_LINE_FLAG_EDGE_BOTH instead
of combining the rising and falling edge flags.
Signed-off-by: default avatarKent Gibson <warthog618@gmail.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: default avatarDipen Patel <dipenp@nvidia.com>
Tested-by: default avatarDipen Patel <dipenp@nvidia.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
parent 160d6e40
...@@ -885,9 +885,7 @@ static int debounce_setup(struct line *line, ...@@ -885,9 +885,7 @@ static int debounce_setup(struct line *line,
return ret; return ret;
line->irq = irq; line->irq = irq;
} else { } else {
ret = hte_edge_setup(line, ret = hte_edge_setup(line, GPIO_V2_LINE_FLAG_EDGE_BOTH);
GPIO_V2_LINE_FLAG_EDGE_RISING |
GPIO_V2_LINE_FLAG_EDGE_FALLING);
if (ret) if (ret)
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment