All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/radeon/dp: make radeon_dp_get_dp_link_config static
@ 2017-09-29 15:54 Alex Deucher
       [not found] ` <1506700488-16107-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Deucher @ 2017-09-29 15:54 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Alex Deucher

It's not used outside this file any longer.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/radeon/atombios_dp.c | 8 ++++----
 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 432cb46..a904c80 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)
 
 /***** 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 };
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h
index da44ac2..ca0a7ed 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);
 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);
-- 
2.5.5

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/radeon/dp: make radeon_dp_get_dp_link_config static
       [not found] ` <1506700488-16107-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
@ 2017-09-30 15:48   ` Christian König
  0 siblings, 0 replies; 2+ messages in thread
From: Christian König @ 2017-09-30 15:48 UTC (permalink / raw)
  To: Alex Deucher, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Alex Deucher

Am 29.09.2017 um 17:54 schrieb Alex Deucher:
> It's not used outside this file any longer.
>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

Reviewed-by: Christian König <christian.koenig@amd.com>

> ---
>   drivers/gpu/drm/radeon/atombios_dp.c | 8 ++++----
>   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 432cb46..a904c80 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)
>   
>   /***** 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 };
> diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h
> index da44ac2..ca0a7ed 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);
>   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
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-30 15:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-29 15:54 [PATCH] drm/radeon/dp: make radeon_dp_get_dp_link_config static Alex Deucher
     [not found] ` <1506700488-16107-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
2017-09-30 15:48   ` Christian König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.