Solve the problem of charge mode setting when power off

1. Initialize the value of the charge-mode and refresh-rate when 
the touchscreen resume.


Change-Id: If09a10c6fad241e47b98aea8a5dd75aae78ede11
Reviewed-on: https://gerrit.mot.com/1522920
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
litong 2020-03-27 16:43:04 +08:00 • committed by litong20
commit bc2d1b90b2

View file

@ -208,8 +208,12 @@ static void ts_mmi_queued_resume(struct ts_mmi_dev *touch_cdev)
TRY_TO_CALL(post_resume);
touch_cdev->pm_mode = TS_MMI_PM_ACTIVE;
if (touch_cdev->pdata.usb_detection)
TRY_TO_CALL(charger_mode, (int)touch_cdev->ps_is_present);
if (touch_cdev->pdata.update_refresh_rate)
TRY_TO_CALL(refresh_rate, (int)touch_cdev->refresh_rate);
touch_cdev->pm_mode = TS_MMI_PM_ACTIVE;
dev_info(DEV_MMI, "%s: done\n", __func__);
}