input: ft5x06_ts: pinctrl and gpio config in suspend/resume path
When device switch to suspend state the gpio and pinctrl need to be configured properly to prevent the touch controller current leakage in device suspend state. The pinctrl must be configure first before the gpio configuration. Select the pinctrl sleep state and after that in gpio configuration part free both IRQ and reset gpio, and also set direction of reset gpio to be input. If the gpio and pinctrl is not in proper state the touch controller will not switch to the deep sleep state and it will start consume current during the device suspend state. To prevent this leakage current issue, pinctrl and gpio must be configured properly. This patch is propagated from msm-3.10 kernel. (commit: ed01014b95e8f91ea7a1d6b7c5898e24933fabaa input: ft5x06_ts: pinctrl and gpio config in suspend/resume path) Also cleared checkpatch errors on msm-3.18 kernel. Change-Id: I0ec72bbbf12320ad22608522d1250614c6686fe3 Signed-off-by:Sarada Prasanna Garnayak <c_sgarna@codeaurora.org> Signed-off-by:
Sudhakar Manapati <smanap@codeaurora.org>
Loading
Please register or sign in to comment