]> git.baikalelectronics.ru Git - kernel.git/commit
Input: elants_i2c - fix wake-on-touch
authorJames Chen <james.chen@emc.com.tw>
Fri, 18 Dec 2015 23:51:48 +0000 (15:51 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 19 Dec 2015 00:21:43 +0000 (16:21 -0800)
commitd3a338f229f7652c39ba9ca6d04cd17c86024651
tree2b9e1d223ca6075ce8fd68d07efbc51eb5301ffe
parent3b5e28306a2e4d11fc4b0f53f8b5292182dccb03
Input: elants_i2c - fix wake-on-touch

When sending "SLEEP" command to the controller it ceases scanning
completely and is unable to wake the system up from sleep, so if it is
configured as a wakeup source we should simply configure interrupt for
wakeup and rely on idle logic within the controller to reduce power
consumption while it is not used.

Signed-off-by: James Chen <james.chen@emc.com.tw>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/elants_i2c.c