From d3b6014d0874afffdc9bbe964ec98087d49f3f9d Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Thu, 15 Dec 2022 15:31:19 +0800 Subject: [PATCH] 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 Reviewed-on: https://gerrit.mot.com/2462331 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yan Zhang Reviewed-by: Yeqing Wang Reviewed-by: Tao Sun Submit-Approved: Jira Key --- drivers/input/misc/ets_bix_mmi/etxxx_fp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/ets_bix_mmi/etxxx_fp.c b/drivers/input/misc/ets_bix_mmi/etxxx_fp.c index 535538fdffbc..1384c113b690 100755 --- a/drivers/input/misc/ets_bix_mmi/etxxx_fp.c +++ b/drivers/input/misc/ets_bix_mmi/etxxx_fp.c @@ -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