Input: goodix - add power management support
authorIrina Tirdea <irina.tirdea@intel.com>
Fri, 18 Dec 2015 00:43:39 +0000 (16:43 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 18 Dec 2015 01:11:53 +0000 (17:11 -0800)
commit5ab09d6a8f6406134085fb3f30ab61968c6f1ddf
treeea3327fd4310c682bacc92e57b0bf38f503c42d0
parent68caf85881cd842b59d5e2124a236ecce0389a73
Input: goodix - add power management support

Implement suspend/resume for goodix driver.

The suspend and resume process uses the gpio pins.  If the device ACPI/DT
information does not declare gpio pins, suspend/resume will not be
available for these devices.

This is based on Goodix datasheets for GT911 and GT9271 and on Goodix
driver gt9xx.c for Android (publicly available in Android kernel trees for
various devices).

Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Tested-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/goodix.c