]> git.karo-electronics.de Git - linux-beck.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)
commitdee520e368f54e1bc0e387bfda7ef4e0676e248b
tree10f1ed503f37b5a058241b5169b56a4dd0828162
parentd9202af2ffa083f096684fd5f4b530aebbc07439
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