mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
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:
parent
8899397ed7
commit
9061c0b31d
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue