diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2017-09-29 11:35:52 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-10-08 20:16:29 -0400 |
commit | d3f04c98ead2b89887e1e3c09b26e4917bacdd9e (patch) | |
tree | 6e198def9289fe1c3608e34ed3a72f5fb747c795 | |
parent | c3b16f16a4dffd8516a2020ce2539ebf8b2d6e33 (diff) |
drm/radeon/dp: make radeon_dp_get_dp_link_config static
It's not used outside this file any longer.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/radeon/atombios_dp.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_mode.h | 4 |
2 files changed, 4 insertions, 8 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c index 432cb46f6a34..a904c80c30e6 100644 --- a/drivers/gpu/drm/radeon/atombios_dp.c +++ b/drivers/gpu/drm/radeon/atombios_dp.c | |||
@@ -304,10 +304,10 @@ static int convert_bpc_to_bpp(int bpc) | |||
304 | 304 | ||
305 | /***** radeon specific DP functions *****/ | 305 | /***** radeon specific DP functions *****/ |
306 | 306 | ||
307 | int radeon_dp_get_dp_link_config(struct drm_connector *connector, | 307 | static int radeon_dp_get_dp_link_config(struct drm_connector *connector, |
308 | const u8 dpcd[DP_DPCD_SIZE], | 308 | const u8 dpcd[DP_DPCD_SIZE], |
309 | unsigned pix_clock, | 309 | unsigned pix_clock, |
310 | unsigned *dp_lanes, unsigned *dp_rate) | 310 | unsigned *dp_lanes, unsigned *dp_rate) |
311 | { | 311 | { |
312 | int bpp = convert_bpc_to_bpp(radeon_get_monitor_bpc(connector)); | 312 | int bpp = convert_bpc_to_bpp(radeon_get_monitor_bpc(connector)); |
313 | static const unsigned link_rates[3] = { 162000, 270000, 540000 }; | 313 | static const unsigned link_rates[3] = { 162000, 270000, 540000 }; |
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h index da44ac234f64..ca0a7ed28c9b 100644 --- a/drivers/gpu/drm/radeon/radeon_mode.h +++ b/drivers/gpu/drm/radeon/radeon_mode.h | |||
@@ -762,10 +762,6 @@ extern u8 radeon_dp_getsinktype(struct radeon_connector *radeon_connector); | |||
762 | extern bool radeon_dp_getdpcd(struct radeon_connector *radeon_connector); | 762 | extern bool radeon_dp_getdpcd(struct radeon_connector *radeon_connector); |
763 | extern int radeon_dp_get_panel_mode(struct drm_encoder *encoder, | 763 | extern int radeon_dp_get_panel_mode(struct drm_encoder *encoder, |
764 | struct drm_connector *connector); | 764 | struct drm_connector *connector); |
765 | extern int radeon_dp_get_dp_link_config(struct drm_connector *connector, | ||
766 | const u8 *dpcd, | ||
767 | unsigned pix_clock, | ||
768 | unsigned *dp_lanes, unsigned *dp_rate); | ||
769 | extern void radeon_dp_set_rx_power_state(struct drm_connector *connector, | 765 | extern void radeon_dp_set_rx_power_state(struct drm_connector *connector, |
770 | u8 power_state); | 766 | u8 power_state); |
771 | extern void radeon_dp_aux_init(struct radeon_connector *radeon_connector); | 767 | extern void radeon_dp_aux_init(struct radeon_connector *radeon_connector); |