mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
disp: msm: hdcp: fix compilation of msm_hdcp module on GKI
Add stub functions for msm_hdcp module in order to prevent linker issues when CONFIG_HDCP_QSEECOM is not defined, marked as not disabled or defined as module. Furthermore, a Kbuild entry for the msm_hdcp.h file so that it is exported. Change-Id: I0f102bf4c9722d95b897facdab94d83e32f7d29f Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
This commit is contained in:
parent
a703569e0f
commit
cf0e14d185
3 changed files with 20 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note
|
||||
|
||||
header-y += msm_hdcp.h
|
||||
header-y += sde_io_util.h
|
||||
header-y += sde_rsc.h
|
||||
|
||||
|
|
|
|||
|
|
@ -8,10 +8,26 @@
|
|||
#include <linux/types.h>
|
||||
#include "hdcp/msm_hdmi_hdcp_mgr.h"
|
||||
|
||||
#if IS_ENABLED(CONFIG_HDCP_QSEECOM)
|
||||
void msm_hdcp_notify_topology(struct device *dev);
|
||||
void msm_hdcp_cache_repeater_topology(struct device *dev,
|
||||
struct HDCP_V2V1_MSG_TOPOLOGY *tp);
|
||||
void msm_hdcp_register_cb(struct device *dev, void *ctx,
|
||||
void (*cb)(void *ctx, u8 data));
|
||||
#else
|
||||
static inline void msm_hdcp_notify_topology(struct device *dev)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void msm_hdcp_cache_repeater_topology(struct device *dev,
|
||||
struct HDCP_V2V1_MSG_TOPOLOGY *tp)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void msm_hdcp_register_cb(struct device *dev, void *ctx,
|
||||
void (*cb)(void *ctx, u8 data))
|
||||
{
|
||||
}
|
||||
#endif /* CONFIG_HDCP_QSEECOM*/
|
||||
|
||||
#endif /* __MSM_HDCP_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue