drm/amd/display: Make dc_link param const in set_drive_settings
authorZeyu Fan <Zeyu.Fan@amd.com>
Fri, 21 Apr 2017 14:55:01 +0000 (10:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:06:36 +0000 (18:06 -0400)
Signed-off-by: Zeyu Fan <Zeyu.Fan@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/dc.h

index 953e201dc6bc93b8edd21ade33aa2fea8466f24e..17286465e8505274aaaa34897f68ead647c2dc40 100644 (file)
@@ -605,7 +605,7 @@ static bool is_max_vs_reached(
 }
 
 void dc_link_dp_set_drive_settings(
-       struct dc_link *link,
+       const struct dc_link *link,
        struct link_training_settings *lt_settings)
 {
        struct core_link *core_link = DC_LINK_TO_CORE(link);
index 5629e3ca6336904efd7269994c3d4ee609a035d3..a2a9e4ed393cde5f1d4b3c7307df2d6c45802bd7 100644 (file)
@@ -691,7 +691,7 @@ void dc_link_remove_remote_sink(
 void dc_link_set_sink(const struct dc_link *link, struct dc_sink *sink);
 
 void dc_link_dp_set_drive_settings(
-       struct dc_link *link,
+       const struct dc_link *link,
        struct link_training_settings *lt_settings);
 
 bool dc_link_dp_perform_link_training(