]> git.baikalelectronics.ru Git - kernel.git/commit
Input: rotary_encoder - use threaded irqs
authorTimo Teräs <timo.teras@iki.fi>
Sun, 17 Jan 2016 04:46:24 +0000 (20:46 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 2 Mar 2016 17:30:06 +0000 (09:30 -0800)
commit6171d71166c349c5818e2d73636b600bda254def
tree10f1ed503f37b5a058241b5169b56a4dd0828162
parenta097d979d64282331175203617efa073bcad72e7
Input: rotary_encoder - use threaded irqs

Convert to use threaded IRQs to support GPIOs that can sleep.
Protect the irq handler with mutex as it can be triggered from
two different irq lines accessing the same state.

This allows using GPIO expanders behind I2C or SPI bus.

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/rotary_encoder.c