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 <zoujc@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
litong20 2022-03-01 11:07:41 +08:00 • committed by litong
commit e938b5dfd1

View file

@ -55,7 +55,6 @@
#else /* CONFIG_PANEL_NOTIFICATIONS */
#if defined(CONFIG_DRM_PANEL_EVENT_NOTIFICATIONS)
#include <linux/soc/qcom/panel_event_notifier.h>
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 <drm/drm_panel.h>
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 \