diff options
author | davidycchen <davidycchen@google.com> | 2022-11-23 11:53:57 +0800 |
---|---|---|
committer | davidycchen <davidycchen@google.com> | 2022-11-23 11:53:57 +0800 |
commit | 24e7d24d10eafe09cafc739b6aa8b2020c169dd3 (patch) | |
tree | 1ccb1e55d5f9a0259956def3a0ca4f58786c5411 /goodix_ts_core.c | |
parent | ad14c9790ecdb00dafa397830af3f4ddcd769333 (diff) | |
download | goodix_touch-24e7d24d10eafe09cafc739b6aa8b2020c169dd3.tar.gz |
goodix: move finger releasing process to GTI.
Bug: 260020612
Test: suspend/resume the device.
Change-Id: I54a183f8dc618bb2f54d87e45893d4439a7f6e64
Signed-off-by: davidycchen <davidycchen@google.com>
Diffstat (limited to 'goodix_ts_core.c')
-rw-r--r-- | goodix_ts_core.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/goodix_ts_core.c b/goodix_ts_core.c index 10617c5..eb34f83 100644 --- a/goodix_ts_core.c +++ b/goodix_ts_core.c @@ -2330,28 +2330,6 @@ static void goodix_ts_release_connects(struct goodix_ts_core *core_data) } #endif -#if IS_ENABLED(CONFIG_GOOG_TOUCH_INTERFACE) -static void goodix_ts_release_connects_goog(struct goodix_ts_core *core_data) -{ - struct input_dev *input_dev = core_data->input_dev; - struct goog_touch_interface *gti = core_data->gti; - int i; - - goog_input_lock(gti); - - goog_input_set_timestamp(gti, input_dev, KTIME_RELEASE_ALL); - for (i = 0; i < GOODIX_MAX_TOUCH; i++) { - goog_input_mt_slot(gti, input_dev, i); - goog_input_mt_report_slot_state( - gti, input_dev, MT_TOOL_FINGER, false); - } - goog_input_report_key(gti, input_dev, BTN_TOUCH, 0); - goog_input_sync(gti, input_dev); - - goog_input_unlock(gti); -} -#endif - /** * goodix_ts_suspend - Touchscreen suspend function * Called by PM/FB/EARLYSUSPEN module to put the device to sleep @@ -2428,9 +2406,7 @@ static int goodix_ts_suspend(struct goodix_ts_core *core_data) goodix_set_pinctrl_state(core_data, PINCTRL_MODE_SUSPEND); out: -#if IS_ENABLED(CONFIG_GOOG_TOUCH_INTERFACE) - goodix_ts_release_connects_goog(core_data); -#else +#if !IS_ENABLED(CONFIG_GOOG_TOUCH_INTERFACE) goodix_ts_release_connects(core_data); #endif |