From 8f3edf4faaa42b2c8b10851b14a34b1afcc7232e Mon Sep 17 00:00:00 2001 From: Xiaojun Lv Date: Mon, 14 Nov 2022 16:10:18 +0800 Subject: [PATCH] genevn: optimize touch nt36672c gesture for fw v08 tp: 1. For v08 fw: Mode 1: single tap only cmd is 0x02 Mode 2: single tap + double cmd is 0x06(v07 and before is 0x03) Mode 3: double tap only cmd is 0x04 So, we optimize the touch driver for v08 fw. Change-Id: I9f0894e27932f6440522d38aa0635740bb51b535 Reviewed-on: https://gerrit.mot.com/2428888 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- drivers/input/touchscreen/nova_0flash_mmi/nt36xxx_mmi_class.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx_mmi_class.c b/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx_mmi_class.c index 6890eb4c17e1..f11b96e3d14b 100644 --- a/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx_mmi_class.c +++ b/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx_mmi_class.c @@ -612,8 +612,6 @@ static int nvt_mmi_panel_state(struct device *dev, } //---write command to enter "wakeup gesture mode"--- - if (gesture_cmd == 0x06) - gesture_cmd = 0x03; nvt_cmd_ext_store(DOUBLE_TAP_GESTURE_MODE_CMD, gesture_cmd); gesture_cmd = 0x00; #endif