summaryrefslogtreecommitdiff
path: root/ft3658/focaltech_core.c
diff options
context:
space:
mode:
authorMason Wang <masonwang@google.com>2022-03-02 03:31:23 +0000
committerMason Wang <masonwang@google.com>2022-03-02 03:31:23 +0000
commit074209bfc4570a8b8927f640224e237f31490175 (patch)
treec032aac95c798ef434796c87ee43a5755dde5e19 /ft3658/focaltech_core.c
parentd85e6785800bccab90b172c8a4ac08541c9890ce (diff)
downloadfocaltech_touch-074209bfc4570a8b8927f640224e237f31490175.tar.gz
Revert "Revert "Revert "touch/focaltech: get into deep sleep mod..."
Revert submission 2161667-revert-2161664-revert-2152470-p10_touch_fw_v07-FPJVWXSAED-KOGLMZEMOP Reason for revert: b/222138584 Reverted Changes: I8a0f28688:Revert "Revert "touch/focaltech: get into deep sle... Icdba3a680:Revert "Revert "touch/focaltech: update major/mino... Change-Id: Idb62b6b04ab5ff60d0a491e6ea4b22146a876b55
Diffstat (limited to 'ft3658/focaltech_core.c')
-rw-r--r--ft3658/focaltech_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ft3658/focaltech_core.c b/ft3658/focaltech_core.c
index edbb88e..cdf031d 100644
--- a/ft3658/focaltech_core.c
+++ b/ft3658/focaltech_core.c
@@ -2347,10 +2347,12 @@ static int fts_ts_suspend(struct device *dev)
} else {
/* Disable irq */
fts_irq_disable();
+#if !defined(FTS_AOC_GESTURE_EN)
FTS_DEBUG("make TP enter into sleep mode");
ret = fts_write_reg(FTS_REG_POWER_MODE, FTS_REG_POWER_MODE_SLEEP);
if (ret < 0)
FTS_ERROR("set TP to sleep mode fail, ret=%d", ret);
+#endif
if (!ts_data->ic_info.is_incell) {
#if FTS_POWER_SOURCE_CUST_EN