Skip to content

Commit

Permalink
qseecom: Add empty functions to allow disable
Browse files Browse the repository at this point in the history
This allows fbdev and DRM to compile without qseecom.

Signed-off-by: Tyler Nijmeh <tylernij@gmail.com>
  • Loading branch information
tytydraco committed Jun 20, 2019
1 parent 09eb035 commit 3e19f94
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions include/linux/hdcp_qseecom.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ struct hdcp_register_data {
bool tethered;
};

#ifdef CONFIG_HDCP_QSEECOM
int hdcp_library_register(struct hdcp_register_data *data);
void hdcp_library_deregister(void *phdcpcontext);
bool hdcp1_check_if_supported_load_app(void);
Expand All @@ -161,5 +162,44 @@ void hdcp1_notify_topology(void);
void hdcp1_client_register(void *client_ctx,
struct hdcp_client_ops *ops);
void hdcp1_client_unregister(void);
#else
static inline int hdcp_library_register(struct hdcp_register_data *data)
{
return 0;
}
static inline void hdcp_library_deregister(void *phdcpcontext)
{
}
static inline bool hdcp1_check_if_supported_load_app(void)
{
return true;
}
static inline int hdcp1_set_keys(uint32_t *aksv_msb, uint32_t *aksv_lsb)
{
return 0;
}
static inline int hdcp1_set_enc(bool enable)
{
return 0;
}
static inline int hdcp1_validate_receiver_ids(struct hdcp_srm_device_id_t *device_ids,
uint32_t device_id_cnt)
{
return 0;
}
static inline void hdcp1_cache_repeater_topology(void *hdcp1_cached_tp)
{
}
static inline void hdcp1_notify_topology(void)
{
}
static inline void hdcp1_client_register(void *client_ctx,
struct hdcp_client_ops *ops)
{
}
static inline void hdcp1_client_unregister(void)
{
}
#endif

#endif /* __HDCP_QSEECOM_H */

0 comments on commit 3e19f94

Please sign in to comment.