nova_0flash_mmi: return specific value when gesture on

TP:
When gesture is on, LCD need use different suspend command.
Return specific value to LCD to tell current gesture state.

Change-Id: I79e57f448d38d1077f86748d2cacf88e3a74b4e0
Signed-off-by: haojl2 <haojl2@motorola.com>

(cherry picked from commit aa605c8d93b9c8258ad3e2133894330aa7f99713)

Change-Id: I79e57f448d38d1077f86748d2cacf88e3a74b4e0
Reviewed-on: https://gerrit.mot.com/1426753
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
haojl2 2019-09-04 14:59:48 +08:00 • committed by Yeqing Wang
commit d2b208e3c5

View file

@ -2452,6 +2452,12 @@ static int nvt_drm_notifier_callback(struct notifier_block *self, unsigned long
if (*blank == MSM_DRM_BLANK_POWERDOWN) {
NVT_LOG("event=%lu, *blank=%d\n", event, *blank);
nvt_ts_suspend(&ts->client->dev);
#ifdef NVT_SENSOR_EN
if (ts->should_enable_gesture) {
NVT_LOG("double tap gesture suspend\n");
return 1;
}
#endif
}
} else if (event == MSM_DRM_EVENT_BLANK) {
if (*blank == MSM_DRM_BLANK_UNBLANK) {