dlkm/fps:optimise ets_bix_mmi for pnangn

optimise ets_bix_mmi to solve build error issue
motorola/kernel/modules/drivers/input/misc/ets_bix_mmi/etxxx_fp.c
1063 error: implicit declaration of function 'of_drm_find_panel

Change-Id: I34beae498d2dd5444f8460cd4e5b16fe6646409b
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2462331
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
chenlj2 2022-12-15 15:31:19 +08:00 • committed by Lijun Chen
commit d3b6014d08

View file

@ -1045,7 +1045,7 @@ int egisfp_check_ioctl_permission(struct egisfp_dev_t *egis_dev, unsigned int cm
return -EACCES;
}
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
#if ((defined(CONFIG_DRM_PANEL_NOTIFICATIONS) && (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0))) || defined(SET_QCOM_PANEL_EVENT_NOTIFIER))
static int drm_check_dt(struct egisfp_dev_t *egis_dev)
{
int i = 0;
@ -1433,7 +1433,7 @@ int egisfp_probe(struct platform_device *pdev)
#if defined(SET_QCOM_PANEL_EVENT_NOTIFIER)
egis_dev->notifier_cookie = NULL;
#endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0))
#if ((defined(CONFIG_DRM_PANEL_NOTIFICATIONS) && (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0))) || defined(SET_QCOM_PANEL_EVENT_NOTIFIER))
egis_dev->active_panel = NULL;
drm_check_dt(egis_dev);
#endif