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)
commit478e5ed1c3f6928ece7fffd712ba728b1f92217d
tree2b9e1d223ca6075ce8fd68d07efbc51eb5301ffe
parent3eab4588c958205451fd80dfd219955c5e91c18b
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