Fix goodix touch driver build error

Fix goodix touch driver build error when enable FOD event on SM8550
platform.

goodix_ts_gesture_fod.c:368:6: error: variable 'fodx' set but not used [-Werror,-Wunused-but-set-variable]
        int fodx, fody, overlay_area;

Change-Id: Id98544f32b4e75345236b684593fe9d308781c96
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2349095
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-07-29 17:07:46 +08:00 • committed by zhuwg1
commit 1a064151a2

View file

@ -365,7 +365,7 @@ static int gsx_gesture_ist(struct goodix_ts_core *cd,
{
struct goodix_ts_hw_ops *hw_ops = cd->hw_ops;
struct goodix_ts_event gs_event = {0};
int fodx, fody, overlay_area;
__maybe_unused int fodx, fody, overlay_area;
int ret;
#if defined(CONFIG_INPUT_TOUCHSCREEN_MMI)
struct gesture_event_data mmi_event;