summaryrefslogtreecommitdiff
path: root/ft3658/focaltech_core.h
diff options
context:
space:
mode:
authorMason Wang <masonwang@google.com>2022-02-10 11:49:18 +0800
committerMason Wang <masonwang@google.com>2022-02-10 17:39:50 +0800
commita86596d67cec7245511cc984dfc23615d57d9360 (patch)
treee30a9dea1e848a7cadbd4e0ac72e535e5e8845c2 /ft3658/focaltech_core.h
parent212915dbe0c7dbaed93c1c76b54330d362c8b024 (diff)
downloadfocaltech_touch-a86596d67cec7245511cc984dfc23615d57d9360.tar.gz
Touch/Focaltech: fix reading reg(0xB2) in factory mode.
The root cause is to read specific register which belongs to normal work mode, it will cause KP to access it in factory mode. Add the code to check the operation mode before access the register to prevent this kind of issues. Bug: 218613245 Test: Verify pass by following test cases: 1.Normal touch operation. 2.adb shell cat /proc/focaltech_touch/INT_PIN Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I4379315b74812a1db7a84e20b4f42baf1fc61e4e
Diffstat (limited to 'ft3658/focaltech_core.h')
-rw-r--r--ft3658/focaltech_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ft3658/focaltech_core.h b/ft3658/focaltech_core.h
index ef44e98..b3708e7 100644
--- a/ft3658/focaltech_core.h
+++ b/ft3658/focaltech_core.h
@@ -252,6 +252,7 @@ enum FTS_BUS_TYPE {
BUS_TYPE_SPI_V2,
};
+#if GOOGLE_REPORT_MODE
enum FTS_CUSTOMER_STATUS {
STATUS_HOPPING = 0,
STATUS_PALM = 2,
@@ -262,6 +263,7 @@ enum FTS_CUSTOMER_STATUS {
STATUS_LPTW,
STATUS_CNT_END,
};
+#endif
enum FTS_SCAN_MODE {
MODE_AUTO,