summaryrefslogtreecommitdiff
path: root/goodix_ts_proc.c
diff options
context:
space:
mode:
authorWendly Li <wendlyli@google.com>2022-07-08 03:43:30 +0000
committerWendly Li <wendlyli@google.com>2022-07-08 04:03:36 +0000
commitffb59b17dd9037ddd7610584142008ef1b7ff730 (patch)
tree37e255068ed0d9a0e2ce96265ecd024ec6e97e91 /goodix_ts_proc.c
parentdac3f71bb15804dd88e2d567a51a8e1354fbfc9a (diff)
downloadgoodix_touch-ffb59b17dd9037ddd7610584142008ef1b7ff730.tar.gz
touch/goodix: Fix touch IC is stuck in active mode
Bug: 237369513 Test: Be able to enter idle mode Change-Id: Ic7aa6e936be9f3a55689ce89690644723c4bfe2f Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'goodix_ts_proc.c')
-rw-r--r--goodix_ts_proc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/goodix_ts_proc.c b/goodix_ts_proc.c
index 7dbdd26..b605eb2 100644
--- a/goodix_ts_proc.c
+++ b/goodix_ts_proc.c
@@ -2590,17 +2590,11 @@ static void goodix_set_heatmap(int val)
temp_cmd.len = 5;
temp_cmd.cmd = 0xC9;
temp_cmd.data[0] = 0;
- cd->hw_ops->send_cmd(cd, &temp_cmd);
- temp_cmd.cmd = 0x90;
- temp_cmd.data[0] = 0;
} else {
index = sprintf(rbuf, "enable heatmap\n");
temp_cmd.len = 5;
temp_cmd.cmd = 0xC9;
temp_cmd.data[0] = 1;
- cd->hw_ops->send_cmd(cd, &temp_cmd);
- temp_cmd.cmd = 0x90;
- temp_cmd.data[0] = 0x82;
}
cd->hw_ops->send_cmd(cd, &temp_cmd);
cd->hw_ops->irq_enable(cd, true);