mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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:
parent
da392862a5
commit
e938b5dfd1
1 changed files with 2 additions and 4 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in a new issue