Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfdb5e57 authored by Narendra Muppalla's avatar Narendra Muppalla
Browse files

drm/msm: add stub API for drm msm event notification



This change adds stub API for drm msm event notification
when CONFIG_DRM_MSM is not available.

Change-Id: I38f2c684b31f19dad03c44f976dcc18afeabaeb2
Signed-off-by: default avatarNarendra Muppalla <NarendraM@codeaurora.org>
parent 6e9f8d30
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 */
#ifndef _MSM_DRM_NOTIFY_H_
#define _MSM_DRM_NOTIFY_H_
@@ -32,6 +32,18 @@ struct msm_drm_notifier {
	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