From 42cef9e7ded09cfc06a0f3819018599545161a7d Mon Sep 17 00:00:00 2001 From: Yan Zhang Date: Tue, 19 Apr 2022 15:56:18 +0800 Subject: [PATCH] : Do not disable Zero Tap when FOD is not enabled. FOD: Do not disable Zero Tap when FOD is not enabled. Change-Id: Ica9d40e412ecdc00df44d0ed09103b7cda997092 Signed-off-by: Yan Zhang Reviewed-on: https://gerrit.mot.com/2246137 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Wei Deng Reviewed-by: Xiangpo Zhao Tested-by: Jira Key Submit-Approved: Jira Key --- .../goodix_berlin_mmi/goodix_ts_gesture_fod.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_gesture_fod.c b/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_gesture_fod.c index 160a242e8a1d..0d128de01048 100644 --- a/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_gesture_fod.c +++ b/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_gesture_fod.c @@ -422,10 +422,6 @@ static int gsx_gesture_ist(struct goodix_ts_core *cd, fodx = le16_to_cpup((__le16 *)gs_event.gesture_data); fody = le16_to_cpup((__le16 *)(gs_event.gesture_data + 2)); overlay_area = gs_event.gesture_data[4]; - if(!cd->fod_enable) { - ts_info("Get FOD-DOWN gesture when fod is not enabled, ignore"); - goto gesture_ist_exit; - } //goodix firmware do not send coordinate, need mmi touch to define a vaild coordinate thru dts mmi_event.evcode = 2; mmi_event.evdata.x= 0; @@ -446,11 +442,6 @@ static int gsx_gesture_ist(struct goodix_ts_core *cd, } fod_down++; }else if(cd->gesture_type & GESTURE_FOD_PRESS && gs_event.gesture_type == GOODIX_GESTURE_FOD_UP) { - if(!cd->fod_enable) { - ts_info("Get FOD-UP gesture when fod is not enabled, ignore"); - fod_down = 0; - goto gesture_ist_exit; - } ts_info("Get FOD-UP gesture"); mmi_event.evcode = 3; mmi_event.evdata.x= 0;