mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
Lift off current touch when suspend
Lift off current touch when suspend in case after resume still receive last touch data. Change-Id: I2c7e7824d724534af45d88880d08d314e9e9a23c Signed-off-by: Wenge Zhu <zhuwg1@motorola.com> Reviewed-on: https://gerrit.mot.com/2274865 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: litong <litong20@motorola.com> Reviewed-by: Jianqi Yang <yangj@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
8c1a4feee8
commit
bb5af1188d
1 changed files with 2 additions and 0 deletions
|
|
@ -5107,6 +5107,7 @@ int cyttsp5_core_suspend(struct device *dev)
|
|||
struct cyttsp5_core_data *cd = dev_get_drvdata(dev);
|
||||
|
||||
cyttsp5_core_sleep(cd);
|
||||
call_atten_cb(cd, CY_ATTEN_SUSPEND, 0);
|
||||
|
||||
if (IS_DEEP_SLEEP_CONFIGURED(cd->easy_wakeup_gesture))
|
||||
return 0;
|
||||
|
|
@ -5169,6 +5170,7 @@ int cyttsp5_core_resume(struct device *dev)
|
|||
}
|
||||
}
|
||||
exit:
|
||||
call_atten_cb(cd, CY_ATTEN_RESUME, 0);
|
||||
cyttsp5_core_wake(cd);
|
||||
|
||||
dev_info(dev, "%s: resume power state %s \n", __func__,
|
||||
|
|
|
|||
Loading…
Reference in a new issue