mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
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 <zhuwg1@motorola.com> Reviewed-on: https://gerrit.mot.com/2775802 Reviewed-by: Wei Deng <dengwei1@motorola.com> SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jichao Zou <zoujc@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
1600284580
commit
ab87620da1
1 changed files with 4 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue