From 6cf5e0940dea788034e6627ff3764281c8c089d6 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 3 Nov 2022 19:08:20 +0800 Subject: [PATCH] input: nova_0flash_mmi: change single+double tap command nova_0flash_mmi: Change single+double tap command to 0x03, as firmware required. Change-Id: I1f57fafe22e1be52ebba5f1a34bba7628654a213 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2419982 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jing Hu Reviewed-by: Jianqi Yang Submit-Approved: Jira Key --- drivers/input/touchscreen/nova_0flash_mmi/nt36xxx_mmi_class.c | 2 ++ 1 file changed, 2 insertions(+) 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 cb0f3dc3cd9d..0bc9b172a22c 100644 --- a/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx_mmi_class.c +++ b/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx_mmi_class.c @@ -608,6 +608,8 @@ static int nvt_mmi_panel_state(struct device *dev, touch_set_state(TS_MMI_PM_GESTURE, TOUCH_PANEL_IDX_PRIMARY); #endif //---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; break;