Add NVT_SET_TOUCH_STATE to avoid compilation errors

TP:
The touch_set_state function will only be used when the
NVT_SET_TOUCH_STATE configuration is enabled. So add the
configuration to avoid compilation errors.

Change-Id: I832362899339c3465f475c13bb654a73216d8e9c
Reviewed-on: https://gerrit.mot.com/1960799
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
litong20 2021-05-26 17:45:20 +08:00 • committed by litong
commit 9061c0b31d

View file

@ -186,13 +186,17 @@ static int nvt_mmi_panel_state(struct device *dev,
NVT_LOG("panel state change: %d->%d\n", from, to);
switch (to) {
case TS_MMI_PM_GESTURE:
#ifdef NVT_SET_TOUCH_STATE
ts->gesture_enabled = true;
touch_set_state(TS_MMI_PM_GESTURE, TOUCH_PANEL_IDX_PRIMARY);
#endif
break;
case TS_MMI_PM_DEEPSLEEP:
#ifdef NVT_SET_TOUCH_STATE
ts->gesture_enabled = false;
touch_set_state(TS_MMI_PM_DEEPSLEEP, TOUCH_PANEL_IDX_PRIMARY);
#endif
break;
case TS_MMI_PM_ACTIVE: