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 authored and zhuwg1 committed 2022-11-14 00:31:52 -06:00
1 parent 210d3a0a6f
commit ecbc1bbf1f
1 file changed
+1 -1
@@ -918,8 +918,8 @@ static int goodix_ts_mmi_panel_state(struct device *dev,
struct platform_device *pdev; struct platform_device *pdev;
struct goodix_ts_core *core_data; struct goodix_ts_core *core_data;
const struct goodix_ts_hw_ops *hw_ops; const struct goodix_ts_hw_ops *hw_ops;
int ret = 0;
#if defined(CONFIG_BOARD_USES_DOUBLE_TAP_CTRL) #if defined(CONFIG_BOARD_USES_DOUBLE_TAP_CTRL)
int ret = 0;
unsigned short gesture_cmd = 0xFFFF; unsigned short gesture_cmd = 0xFFFF;
unsigned char gesture_type = 0; unsigned char gesture_type = 0;
#endif #endif