DLKM/fps:optimise focal driver

focal
modify event interface to send screen status

Change-Id: I85243ca523276e1bd53ca89807078aae3d1aaf8b
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2173256
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
chenlj2 2022-01-18 17:51:39 +08:00 • committed by Lijun Chen
commit fde09f4c60

View file

@ -359,9 +359,11 @@ static int ff_ctl_fb_notifier_callback(struct notifier_block *nb, unsigned long
uevent_env[0] = "FF_SCREEN_??";
break;
}
uevent_env[1] = NULL;
kill_fasync(&g_context->async_queue, SIGIO, POLL_IN);
FF_LOGD("chenlj2 leave.%s",uevent_env[0]);
if(blank == DRM_PANEL_BLANK_UNBLANK || blank== DRM_PANEL_BLANK_POWERDOWN) {
uevent_env[1] = NULL;
kobject_uevent_env(&g_context->miscdev.this_device->kobj, KOBJ_CHANGE, uevent_env);
FF_LOGD("'%s' leave %s.", __func__,uevent_env[0] );
}
#else /* CONFIG_DRM_PANEL_NOTIFICATIONS */
#if defined(CONFIG_PANEL_NOTIFICATIONS)
char *uevent_env[2];