mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
put register_panel_notifier into ts_mmi_worker_func.
When there is no need to find the active panel, that is, the panel_status is always 0, register panel notifier normally. Change-Id: I2aef34a1fd7ca310bf1fc6a4d9501413208d14c9 Reviewed-on: https://gerrit.mot.com/2019893 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
988952bcc6
commit
ac7db4fdec
1 changed files with 4 additions and 4 deletions
|
|
@ -353,12 +353,12 @@ static void ts_mmi_worker_func(struct work_struct *w)
|
|||
if (ret < 0) {
|
||||
dev_err(DEV_TS, "%s: check drm panel failed. %d\n", __func__, ret);
|
||||
touch_cdev->panel_status = -1;
|
||||
} else {
|
||||
touch_cdev->panel_status = 0;
|
||||
dev_info(DEV_MMI, "%s: register panel notifier\n", __func__);
|
||||
REGISTER_PANEL_NOTIFIER;
|
||||
}
|
||||
#endif
|
||||
if (!touch_cdev->panel_status) {
|
||||
REGISTER_PANEL_NOTIFIER;
|
||||
dev_info(DEV_MMI, "%s: register panel notifier\n", __func__);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in a new issue