From 4065100cc993ba1c6462afaf6fe7f8060c0bf3e9 Mon Sep 17 00:00:00 2001 From: Jun Weng Date: Mon, 5 Dec 2022 17:51:41 +0800 Subject: [PATCH] dlkm: bo: Change the logic of report fod up key - Per the request of fingerprint team, remove the judgment condition of touch_num<=0 when reporting the fod up key, this change can prevent fod up key not being reported because touch_num>0 when fod up key needs to be reported. Change-Id: Iacbfc0592cc7944cfa5497560c3fc5e86531cf7d Signed-off-by: Jun Weng Reviewed-on: https://gerrit.mot.com/2450918 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Wei Deng Reviewed-by: Yeqing Wang Reviewed-by: Yan Zhang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_core.c b/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_core.c index 04987678d90b..30467a11c28f 100644 --- a/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_core.c +++ b/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_core.c @@ -1240,7 +1240,7 @@ static void goodix_ts_report_finger(struct input_dev *dev, input_report_key(dev, BTN_TRIGGER_HAPPY1, 0); input_sync(dev); ts_info("report BTN_TRIGGER_HAPPY1"); - }else if(ts_event->gesture_type == GOODIX_GESTURE_FOD_UP && touch_num <=0) { + }else if(ts_event->gesture_type == GOODIX_GESTURE_FOD_UP) { input_report_key(dev, BTN_TRIGGER_HAPPY2, 1); input_sync(dev); input_report_key(dev, BTN_TRIGGER_HAPPY2, 0);