From 130fa343411bf7188e891e5692fb24f9955afd1a Mon Sep 17 00:00:00 2001 From: zhuwg1 Date: Fri, 25 Mar 2022 16:58:58 +0800 Subject: [PATCH] Fix parade touch driver build eror When "BOARD_USES_DOUBLE_TAP" not defined,use "should_enable_gesture" variable will result in build error. Change-Id: I2e142ed25e9848823b432021202b6ea30290f2f5 Signed-off-by: zhuwg1 Reviewed-on: https://gerrit.mot.com/2226294 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: litong Reviewed-by: Jianqi Yang Submit-Approved: Jira Key --- drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_regs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_regs.h b/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_regs.h index 92fb9f0c33c6..d903d788ccde 100644 --- a/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_regs.h +++ b/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_regs.h @@ -1036,8 +1036,8 @@ struct cyttsp5_core_data { struct mutex tthe_lock; u8 tthe_exit; #endif -#ifdef CYTTSP5_SENSOR_EN bool should_enable_gesture; +#ifdef CYTTSP5_SENSOR_EN struct mutex state_mutex; struct cyttsp5_sensor_platform_data *sensor_pdata; #endif