]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib: cdev: simplify parameter in call to hte_edge_setup
authorKent Gibson <warthog618@gmail.com>
Thu, 14 Jul 2022 02:03:15 +0000 (10:03 +0800)
committerBartosz Golaszewski <brgl@bgdev.pl>
Tue, 19 Jul 2022 08:01:25 +0000 (10:01 +0200)
commit64f60468954e07aee9b852a815ccd4690ebc4ce0
treeb16fbbff8ff5b43d7f7d0bc3efa18016024993ce
parent90734b7e229ff7a4e55b935cd41243f807f5f2c5
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: Kent Gibson <warthog618@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Dipen Patel <dipenp@nvidia.com>
Tested-by: Dipen Patel <dipenp@nvidia.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpiolib-cdev.c