Skip to contentSkip to conversation

drm/radeon/dp: make radeon_dp_get_dp_link_config static

PATCH In review Alex Deucher 2 participants 2 messages Sep 29, 2017 – Sep 30, 2017 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon/dp: make radeon_dp_get_dp_link_config static

It's not used outside this file any longer.

---
 drivers/gpu/drm/radeon/atombios_dp.c | 8 ++++----
 drivers/gpu/drm/radeon/radeon_mode.h | 4 ----
 2 files changed, 4 insertions(+), 8 deletions(-)
drivers/gpu/drm/radeon/atombios_dp.c +4 -4
index 432cb46..a904c80 100644
@@ -304,10 +304,10 @@ static int convert_bpc_to_bpp(int bpc)
 
 /***** radeon specific DP functions *****/
 
-int radeon_dp_get_dp_link_config(struct drm_connector *connector,
-				 const u8 dpcd[DP_DPCD_SIZE],
-				 unsigned pix_clock,
-				 unsigned *dp_lanes, unsigned *dp_rate)
+static int radeon_dp_get_dp_link_config(struct drm_connector *connector,
+					const u8 dpcd[DP_DPCD_SIZE],
+					unsigned pix_clock,
+					unsigned *dp_lanes, unsigned *dp_rate)
 {
 	int bpp = convert_bpc_to_bpp(radeon_get_monitor_bpc(connector));
 	static const unsigned link_rates[3] = { 162000, 270000, 540000 };
drivers/gpu/drm/radeon/radeon_mode.h +0 -4
index da44ac2..ca0a7ed 100644
@@ -762,10 +762,6 @@ extern u8 radeon_dp_getsinktype(struct radeon_connector *radeon_connector);
 extern bool radeon_dp_getdpcd(struct radeon_connector *radeon_connector);
 extern int radeon_dp_get_panel_mode(struct drm_encoder *encoder,
 				    struct drm_connector *connector);
-extern int radeon_dp_get_dp_link_config(struct drm_connector *connector,
-					const u8 *dpcd,
-					unsigned pix_clock,
-					unsigned *dp_lanes, unsigned *dp_rate);
 extern void radeon_dp_set_rx_power_state(struct drm_connector *connector,
 					 u8 power_state);
 extern void radeon_dp_aux_init(struct radeon_connector *radeon_connector);
Signature · 6 lines
2.5.5

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1506700488-16107-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw

Am 29.09.2017 um 17:54 schrieb Alex Deucher:

Quoted 3 lines

It's not used outside this file any longer.

Quoted 29 lines
---
  drivers/gpu/drm/radeon/atombios_dp.c | 8 ++++----
  drivers/gpu/drm/radeon/radeon_mode.h | 4 ----
  2 files changed, 4 insertions(+), 8 deletions(-)
drivers/gpu/drm/radeon/atombios_dp.c +4 -4
index 432cb46..a904c80 100644
@@ -304,10 +304,10 @@ static int convert_bpc_to_bpp(int bpc)
 
  /***** radeon specific DP functions *****/
 
-int radeon_dp_get_dp_link_config(struct drm_connector *connector,
-				 const u8 dpcd[DP_DPCD_SIZE],
-				 unsigned pix_clock,
-				 unsigned *dp_lanes, unsigned *dp_rate)
+static int radeon_dp_get_dp_link_config(struct drm_connector *connector,
+					const u8 dpcd[DP_DPCD_SIZE],
+					unsigned pix_clock,
+					unsigned *dp_lanes, unsigned *dp_rate)
  {
  	int bpp = convert_bpc_to_bpp(radeon_get_monitor_bpc(connector));
  	static const unsigned link_rates[3] = { 162000, 270000, 540000 };
drivers/gpu/drm/radeon/radeon_mode.h +0 -0
index da44ac2..ca0a7ed 100644

drivers/gpu/drm/radeon/radeon_mode.h extern u8 radeon_dp_getsinktype(struct radeon_connector *radeon_connector); · line 767

Quoted 10 lines
drivers/gpu/drm/radeon/radeon_mode.h +0 -4
@@ -762,10 +762,6 @@ extern u8 radeon_dp_getsinktype(struct radeon_connector *radeon_connector);
  extern bool radeon_dp_getdpcd(struct radeon_connector *radeon_connector);
  extern int radeon_dp_get_panel_mode(struct drm_encoder *encoder,
  				    struct drm_connector *connector);
-extern int radeon_dp_get_dp_link_config(struct drm_connector *connector,
-					const u8 *dpcd,
-					unsigned pix_clock,
-					unsigned *dp_lanes, unsigned *dp_rate);
  extern void radeon_dp_set_rx_power_state(struct drm_connector *connector,
  					 u8 power_state);
  extern void radeon_dp_aux_init(struct radeon_connector *radeon_connector);

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx