]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/display: remove unused function dc_link_perform_link_training
authorRouven Czerwinski <rouven@czerwinskis.de>
Sat, 8 May 2021 18:19:51 +0000 (20:19 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 May 2021 22:14:18 +0000 (18:14 -0400)
This function is not used anywhere, remove it. It was added in
40dd6bd376a4 ("drm/amd/display: Linux Set/Read link rate and lane count
through debugfs") and moved in fe798de53a7a ("drm/amd/display: Move link
functions from dc to dc_link"), but a user is missing.

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dc_link.h

index c4405eba724c3ca53e3f118153f99e645976b084..81beff4e94348c22440c1cb4a623eb127af1c41d 100644 (file)
@@ -3578,19 +3578,6 @@ void dc_link_set_drive_settings(struct dc *dc,
        dc_link_dp_set_drive_settings(dc->links[i], lt_settings);
 }
 
-void dc_link_perform_link_training(struct dc *dc,
-                                  struct dc_link_settings *link_setting,
-                                  bool skip_video_pattern)
-{
-       int i;
-
-       for (i = 0; i < dc->link_count; i++)
-               dc_link_dp_perform_link_training(
-                       dc->links[i],
-                       link_setting,
-                       skip_video_pattern);
-}
-
 void dc_link_set_preferred_link_settings(struct dc *dc,
                                         struct dc_link_settings *link_setting,
                                         struct dc_link *link)
index 4131d0036857357916464971a86bd83931d2defd..3b57ba5fbb4b3741dd1515d6461862f33becb329 100644 (file)
@@ -356,9 +356,6 @@ bool dc_link_is_hdcp22(struct dc_link *link, enum signal_type signal);
 void dc_link_set_drive_settings(struct dc *dc,
                                struct link_training_settings *lt_settings,
                                const struct dc_link *link);
-void dc_link_perform_link_training(struct dc *dc,
-                                  struct dc_link_settings *link_setting,
-                                  bool skip_video_pattern);
 void dc_link_set_preferred_link_settings(struct dc *dc,
                                         struct dc_link_settings *link_setting,
                                         struct dc_link *link);