gpiolib: cdev: add GPIO_V2_LINE_FLAG_EDGE_BOTH and use it in edge_irq_thread()
authorKent Gibson <warthog618@gmail.com>
Thu, 29 Oct 2020 08:48:32 +0000 (16:48 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 30 Oct 2020 14:53:19 +0000 (15:53 +0100)
commit5e2ca893d772560a0926a31b88f8c83efbc6b058
tree762fa8aa72e1e30e968942bac5abedafedf49580
parent43ddebdd096638ef8cd2ec41d6acca3400069171
gpiolib: cdev: add GPIO_V2_LINE_FLAG_EDGE_BOTH and use it in edge_irq_thread()

Add GPIO_V2_LINE_FLAG_EDGE_BOTH macro and use it in edge_irq_thread() to
improve readability of edge handling cases.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpiolib-cdev.c