summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Hong <rurumihong@google.com>2021-11-12 19:00:03 +0800
committerAlex Hong <rurumihong@google.com>2021-11-12 19:00:10 +0800
commit769f05c837420fc6cb6746428272a1531a7d2a8a (patch)
tree2b686f1c6a3505978a735a318ad0e6766f8d863e
parenta92a7113f1728f56bb0598d45683a1c264fce77c (diff)
parent5b6799f406055b3ae240e5ecdbd91409d763a787 (diff)
downloadsec_touch-769f05c837420fc6cb6746428272a1531a7d2a8a.tar.gz
Merge android12-gs-pixel-5.10-sc-v2 into android13-gs-pixel-5.10
Bug: 199698959 Change-Id: I7bbc1b84ccb82e6518f88d3fefca1e936978da0b Signed-off-by: Alex Hong <rurumihong@google.com>
-rw-r--r--sec_ts.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/sec_ts.c b/sec_ts.c
index a417eea..8af51d7 100644
--- a/sec_ts.c
+++ b/sec_ts.c
@@ -2728,37 +2728,6 @@ static void sec_ts_handle_fod_event(struct sec_ts_data *ts,
input_info(true, &ts->client->dev,
"STATUS: FoD: %s, X,Y: %d, %d\n", p_fod->status ? "ON" : "OFF", x, y);
-
- if (p_fod->status == false) {
- mutex_lock(&ts->eventlock);
- input_mt_slot(ts->input_dev, 0);
- input_report_key(ts->input_dev, BTN_TOUCH, 1);
- input_mt_report_slot_state(ts->input_dev, MT_TOOL_FINGER, 1);
- input_report_abs(ts->input_dev, ABS_MT_POSITION_X, x);
- input_report_abs(ts->input_dev, ABS_MT_POSITION_Y, y);
- input_report_abs(ts->input_dev, ABS_MT_TOUCH_MAJOR, 140);
- input_report_abs(ts->input_dev, ABS_MT_TOUCH_MINOR, 140);
-#ifndef SKIP_PRESSURE
- input_report_abs(ts->input_dev, ABS_MT_PRESSURE, 1);
-#endif
- input_sync(ts->input_dev);
-
- /* Report MT_TOOL_PALM for canceling the touch event. */
- input_mt_slot(ts->input_dev, 0);
- input_report_key(ts->input_dev, BTN_TOUCH, 1);
- input_mt_report_slot_state(ts->input_dev, MT_TOOL_PALM, 1);
- input_sync(ts->input_dev);
-
- /* Release slot 0. */
- input_mt_slot(ts->input_dev, 0);
- input_report_abs(ts->input_dev, ABS_MT_PRESSURE, 0);
- input_mt_report_slot_state(ts->input_dev,
- MT_TOOL_FINGER, 0);
- input_report_abs(ts->input_dev, ABS_MT_TRACKING_ID, -1);
- input_report_key(ts->input_dev, BTN_TOUCH, 0);
- input_sync(ts->input_dev);
- mutex_unlock(&ts->eventlock);
- }
}
static void sec_ts_read_vendor_event(struct sec_ts_data *ts,