Fix goodix touch driver build error

When CONFIG_BOARD_USES_DOUBLE_TAP_CTRL macro not defined,goodix touch
driver will build error.

Change-Id: Ia4dd842a7255f2e954db9fbe151fda84ebda7320
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2428636
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Wenge Zhu 2022-11-14 13:35:38 +08:00 • committed by zhuwg1
commit ecbc1bbf1f

View file

@ -918,8 +918,8 @@ static int goodix_ts_mmi_panel_state(struct device *dev,
struct platform_device *pdev;
struct goodix_ts_core *core_data;
const struct goodix_ts_hw_ops *hw_ops;
int ret = 0;
#if defined(CONFIG_BOARD_USES_DOUBLE_TAP_CTRL)
int ret = 0;
unsigned short gesture_cmd = 0xFFFF;
unsigned char gesture_type = 0;
#endif