From e938b5dfd1c5a42b86d647148da7aa3665e740a3 Mon Sep 17 00:00:00 2001 From: litong20 Date: Tue, 1 Mar 2022 11:07:41 +0800 Subject: [PATCH] Fix "active_panel" undefined build error. Fix "active_panel" undefined build error in CONFIG_DRM_PANEL_EVENT_NOTIFICATIONS Change-Id: I45b9c513b0abb0c35ed95383b398f1b9bac0bb22 Reviewed-on: https://gerrit.mot.com/2203843 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jichao Zou Submit-Approved: Jira Key --- include/linux/touchscreen_mmi.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/linux/touchscreen_mmi.h b/include/linux/touchscreen_mmi.h index f3c0aaf517ac..1ff546adb0c5 100644 --- a/include/linux/touchscreen_mmi.h +++ b/include/linux/touchscreen_mmi.h @@ -55,7 +55,6 @@ #else /* CONFIG_PANEL_NOTIFICATIONS */ #if defined(CONFIG_DRM_PANEL_EVENT_NOTIFICATIONS) #include -extern struct drm_panel *active_panel; #define REGISTER_PANEL_NOTIFIER { \ void *cookie = NULL; \ @@ -98,14 +97,13 @@ extern struct drm_panel *active_panel; #else /* CONFIG_DRM_PANEL_EVENT_NOTIFICATIONS */ #if defined(CONFIG_DRM_PANEL_NOTIFICATIONS) #include -extern struct drm_panel *active_panel; #define REGISTER_PANEL_NOTIFIER {\ touch_cdev->panel_nb.notifier_call = ts_mmi_panel_cb; \ - ret = drm_panel_notifier_register(active_panel, &touch_cdev->panel_nb); \ + ret = drm_panel_notifier_register(touch_cdev->active_panel, &touch_cdev->panel_nb); \ } #define UNREGISTER_PANEL_NOTIFIER {\ - drm_panel_notifier_unregister(active_panel, &touch_cdev->panel_nb);\ + drm_panel_notifier_unregister(touch_cdev->active_panel, &touch_cdev->panel_nb);\ } #define GET_CONTROL_DSI_INDEX \