drm/bridge: cdns-mhdp8546: Remove unused functions
authorDr. David Alan Gilbert <linux@treblig.org>
Sat, 5 Oct 2024 23:20:17 +0000 (00:20 +0100)
committerRobert Foss <rfoss@kernel.org>
Mon, 11 Nov 2024 16:31:56 +0000 (17:31 +0100)
cdns_mhdp_hdcp_set_lc() and cdns_mhdp_hdcp_set_public_key_param()
were added by commit
6a3608eae6d3 ("drm: bridge: cdns-mhdp8546: Enable HDCP")
but never used.

Remove them.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241005232017.305217-1-linux@treblig.org
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-hdcp.c
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-hdcp.h

index 31832ba..42248f1 100644 (file)
@@ -500,34 +500,6 @@ static void cdns_mhdp_hdcp_prop_work(struct work_struct *work)
        drm_modeset_unlock(&dev->mode_config.connection_mutex);
 }
 
-int cdns_mhdp_hdcp_set_lc(struct cdns_mhdp_device *mhdp, u8 *val)
-{
-       int ret;
-
-       mutex_lock(&mhdp->mbox_mutex);
-       ret = cdns_mhdp_secure_mailbox_send(mhdp, MB_MODULE_ID_HDCP_GENERAL,
-                                           HDCP_GENERAL_SET_LC_128,
-                                           16, val);
-       mutex_unlock(&mhdp->mbox_mutex);
-
-       return ret;
-}
-
-int
-cdns_mhdp_hdcp_set_public_key_param(struct cdns_mhdp_device *mhdp,
-                                   struct cdns_hdcp_tx_public_key_param *val)
-{
-       int ret;
-
-       mutex_lock(&mhdp->mbox_mutex);
-       ret = cdns_mhdp_secure_mailbox_send(mhdp, MB_MODULE_ID_HDCP_TX,
-                                           HDCP2X_TX_SET_PUBLIC_KEY_PARAMS,
-                                           sizeof(*val), (u8 *)val);
-       mutex_unlock(&mhdp->mbox_mutex);
-
-       return ret;
-}
-
 int cdns_mhdp_hdcp_enable(struct cdns_mhdp_device *mhdp, u8 content_type)
 {
        int ret;
index 334c0b8..3b6ec9c 100644 (file)
@@ -82,9 +82,6 @@ struct cdns_hdcp_tx_public_key_param {
        u8 E[DLP_E];
 };
 
-int cdns_mhdp_hdcp_set_public_key_param(struct cdns_mhdp_device *mhdp,
-                                       struct cdns_hdcp_tx_public_key_param *val);
-int cdns_mhdp_hdcp_set_lc(struct cdns_mhdp_device *mhdp, u8 *val);
 int cdns_mhdp_hdcp_enable(struct cdns_mhdp_device *mhdp, u8 content_type);
 int cdns_mhdp_hdcp_disable(struct cdns_mhdp_device *mhdp);
 void cdns_mhdp_hdcp_init(struct cdns_mhdp_device *mhdp);