]> 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)
commit31c87157189c640d8542c3773403d638193d94b3
tree2b9e1d223ca6075ce8fd68d07efbc51eb5301ffe
parent49bc351ec4f92eeab4a44699e7c223de4e7825be
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