From ab87620da155374f22713ee6f482196cf67def40 Mon Sep 17 00:00:00 2001 From: Wenge Zhu Date: Wed, 25 Oct 2023 10:39:26 +0800 Subject: [PATCH] Make compatible for fallthrough On some lower version GCC compiler,fallthrough does not define and will cause compile error: error: use of undeclared identifier 'fallthrough' Change-Id: Ie86ca8703d84a6d06faddc159380a7f4ed40a6a7 Signed-off-by: Wenge Zhu Reviewed-on: https://gerrit.mot.com/2775802 Reviewed-by: Wei Deng SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jichao Zou Submit-Approved: Jira Key --- drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_core.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_core.h b/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_core.h index 3f8450bb14c4..b77f215ee5b8 100644 --- a/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_core.h +++ b/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_core.h @@ -73,6 +73,10 @@ #define GOODIX_GESTURE_UNDER_WATER 0x20 #define GOODIX_GESTURE_PALM_DETECTION 0x40 +#ifndef fallthrough +#define fallthrough do {} while (0) /* fallthrough */ +#endif + enum GOODIX_GESTURE_TYP { GESTURE_SINGLE_TAP = (1 << 0), GESTURE_DOUBLE_TAP = (1 << 1),