Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/bridge: cdns-mhdp8546: Remove unused functions

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

authored by

Dr. David Alan Gilbert and committed by
Robert Foss
d84927a4 e987e22e

-31
-28
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-hdcp.c
··· 500 500 drm_modeset_unlock(&dev->mode_config.connection_mutex); 501 501 } 502 502 503 - int cdns_mhdp_hdcp_set_lc(struct cdns_mhdp_device *mhdp, u8 *val) 504 - { 505 - int ret; 506 - 507 - mutex_lock(&mhdp->mbox_mutex); 508 - ret = cdns_mhdp_secure_mailbox_send(mhdp, MB_MODULE_ID_HDCP_GENERAL, 509 - HDCP_GENERAL_SET_LC_128, 510 - 16, val); 511 - mutex_unlock(&mhdp->mbox_mutex); 512 - 513 - return ret; 514 - } 515 - 516 - int 517 - cdns_mhdp_hdcp_set_public_key_param(struct cdns_mhdp_device *mhdp, 518 - struct cdns_hdcp_tx_public_key_param *val) 519 - { 520 - int ret; 521 - 522 - mutex_lock(&mhdp->mbox_mutex); 523 - ret = cdns_mhdp_secure_mailbox_send(mhdp, MB_MODULE_ID_HDCP_TX, 524 - HDCP2X_TX_SET_PUBLIC_KEY_PARAMS, 525 - sizeof(*val), (u8 *)val); 526 - mutex_unlock(&mhdp->mbox_mutex); 527 - 528 - return ret; 529 - } 530 - 531 503 int cdns_mhdp_hdcp_enable(struct cdns_mhdp_device *mhdp, u8 content_type) 532 504 { 533 505 int ret;
-3
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-hdcp.h
··· 82 82 u8 E[DLP_E]; 83 83 }; 84 84 85 - int cdns_mhdp_hdcp_set_public_key_param(struct cdns_mhdp_device *mhdp, 86 - struct cdns_hdcp_tx_public_key_param *val); 87 - int cdns_mhdp_hdcp_set_lc(struct cdns_mhdp_device *mhdp, u8 *val); 88 85 int cdns_mhdp_hdcp_enable(struct cdns_mhdp_device *mhdp, u8 content_type); 89 86 int cdns_mhdp_hdcp_disable(struct cdns_mhdp_device *mhdp); 90 87 void cdns_mhdp_hdcp_init(struct cdns_mhdp_device *mhdp);