The supported link rates helper is now only used by the eDP sink link rates reading function, so make it static and remove its declarations from the public header.
Signed-off-by: Kory Maincent <[email protected]> --- Changes in v2: - New patch extracted from the split of the 7 --- drivers/gpu/drm/display/drm_dp_helper.c | 5 ++--- include/drm/display/drm_dp_helper.h | 3 --- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/display/drm_dp_helper.c b/drivers/gpu/drm/display/drm_dp_helper.c index d26088a1ab232..9938f3be8836a 100644 --- a/drivers/gpu/drm/display/drm_dp_helper.c +++ b/drivers/gpu/drm/display/drm_dp_helper.c @@ -4925,8 +4925,8 @@ EXPORT_SYMBOL(drm_dp_max_dprx_data_rate); * * Returns: The number of supported link rates, negative error code otherwise. */ -int drm_dp_read_dpcd_supported_link_rates(struct drm_dp_aux *aux, - int link_rates[DP_MAX_SUPPORTED_RATES]) +static int drm_dp_read_dpcd_supported_link_rates(struct drm_dp_aux *aux, + int link_rates[DP_MAX_SUPPORTED_RATES]) { __le16 dpcd_link_rates[DP_MAX_SUPPORTED_RATES] = {0}; int ret, i; @@ -4941,7 +4941,6 @@ int drm_dp_read_dpcd_supported_link_rates(struct drm_dp_aux *aux, return i; } -EXPORT_SYMBOL_GPL(drm_dp_read_dpcd_supported_link_rates); static int drm_dprx_max_rate(const struct drm_dp_tunnel *tunnel, const u8 dpcd[DP_RECEIVER_CAP_SIZE]) diff --git a/include/drm/display/drm_dp_helper.h b/include/drm/display/drm_dp_helper.h index c3677683c5f80..81fe87ad47050 100644 --- a/include/drm/display/drm_dp_helper.h +++ b/include/drm/display/drm_dp_helper.h @@ -703,9 +703,6 @@ static inline int drm_dp_dpcd_write_byte(struct drm_dp_aux *aux, int drm_dp_read_dpcd_caps(struct drm_dp_aux *aux, u8 dpcd[DP_RECEIVER_CAP_SIZE]); -int drm_dp_read_dpcd_supported_link_rates(struct drm_dp_aux *aux, - int link_rates[DP_MAX_SUPPORTED_RATES]); - int drm_dp_read_dpcd_sink_rates(struct drm_dp_aux *aux, const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 lttpr_common_caps[DP_LTTPR_COMMON_CAP_SIZE], -- 2.43.0
