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

drm/msm/dp: remove dp_display_en/disable prototypes and data argument

Remove unused dp_display_en/disable prototypes. While we are at it,
remove extra 'data' argument that is unused.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Kuogee Hsieh <quic_khsieh@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/490104/
Link: https://lore.kernel.org/r/20220617232434.1139950-3-dmitry.baryshkov@linaro.org
Signed-off-by: Rob Clark <robdclark@chromium.org>

authored by

Dmitry Baryshkov and committed by
Rob Clark
ff46c2c4 786a4f66

+3 -6
+3 -6
drivers/gpu/drm/msm/dp/dp_display.c
··· 618 618 return 0; 619 619 }; 620 620 621 - static int dp_display_enable(struct dp_display_private *dp, bool force_link_train); 622 - static int dp_display_disable(struct dp_display_private *dp, u32 data); 623 - 624 621 static void dp_display_handle_plugged_change(struct msm_dp *dp_display, 625 622 bool plugged) 626 623 { ··· 901 904 return 0; 902 905 } 903 906 904 - static int dp_display_disable(struct dp_display_private *dp, u32 data) 907 + static int dp_display_disable(struct dp_display_private *dp) 905 908 { 906 909 struct msm_dp *dp_display = &dp->dp_display; 907 910 ··· 1681 1684 rc = dp_display_post_enable(dp); 1682 1685 if (rc) { 1683 1686 DRM_ERROR("DP display post enable failed, rc=%d\n", rc); 1684 - dp_display_disable(dp_display, 0); 1687 + dp_display_disable(dp_display); 1685 1688 } 1686 1689 1687 1690 /* completed connection */ ··· 1722 1725 return; 1723 1726 } 1724 1727 1725 - dp_display_disable(dp_display, 0); 1728 + dp_display_disable(dp_display); 1726 1729 1727 1730 state = dp_display->hpd_state; 1728 1731 if (state == ST_DISCONNECT_PENDING) {