mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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:
parent
fa1bb52314
commit
bc2d1b90b2
1 changed files with 5 additions and 1 deletions
|
|
@ -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__);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue