MMI drivers use DRM notifications, so keep include files in DLKM area. Change-Id: Ie631ef2c7bcea77d2960a280eac51eb0aa159596 Signed-off-by: Konstantin Makariev <hcv867@motorola.com> Reviewed-on: https://gerrit.mot.com/1448030 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Reviewed-by: Konstantin Makariev <kmakariev@motorola.com> Submit-Approved: Jira Key Tested-by: Jira Key
50 lines
1.0 KiB
C
50 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
|
|
*/
|
|
#ifndef _MSM_DRM_NOTIFY_H_
|
|
#define _MSM_DRM_NOTIFY_H_
|
|
|
|
#include <linux/notifier.h>
|
|
|
|
/* A hardware display blank change occurred */
|
|
#define MSM_DRM_EVENT_BLANK 0x01
|
|
/* A hardware display blank early change occurred */
|
|
#define MSM_DRM_EARLY_EVENT_BLANK 0x02
|
|
|
|
enum {
|
|
/* panel: power on */
|
|
MSM_DRM_BLANK_UNBLANK,
|
|
/* panel: power off */
|
|
MSM_DRM_BLANK_POWERDOWN,
|
|
};
|
|
|
|
enum msm_drm_display_id {
|
|
/* primary display */
|
|
MSM_DRM_PRIMARY_DISPLAY,
|
|
/* external display */
|
|
MSM_DRM_EXTERNAL_DISPLAY,
|
|
MSM_DRM_DISPLAY_MAX
|
|
};
|
|
|
|
struct msm_drm_notifier {
|
|
enum msm_drm_display_id id;
|
|
void *data;
|
|
};
|
|
|
|
#ifdef CONFIG_DRM_MSM
|
|
int msm_drm_register_client(struct notifier_block *nb);
|
|
int msm_drm_unregister_client(struct notifier_block *nb);
|
|
#else
|
|
static inline int msm_drm_register_client(struct notifier_block *nb)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int msm_drm_unregister_client(struct notifier_block *nb)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
#endif
|