]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Remove unused link_enc_cfg_get_link_enc_used_by_stream
authorDr. David Alan Gilbert <linux@treblig.org>
Sun, 2 Feb 2025 21:58:56 +0000 (21:58 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:03:03 +0000 (21:03 -0500)
link_enc_cfg_get_link_enc_used_by_stream() is no longer used after
2021's:
commit 6366b00346c0 ("drm/amd/display: Maintain consistent mode of
operation during encoder assignment")
which introduces and uses the _current version instead.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
drivers/gpu/drm/amd/display/dc/inc/link_enc_cfg.h

index 039b176e086d37d2f9d4cc266021acfc47924278..08b4258b0e2f87b162468cb9f28e112a9f96408c 100644 (file)
@@ -559,17 +559,6 @@ struct link_encoder *link_enc_cfg_get_next_avail_link_enc(struct dc *dc)
        return link_enc;
 }
 
-struct link_encoder *link_enc_cfg_get_link_enc_used_by_stream(
-               struct dc *dc,
-               const struct dc_stream_state *stream)
-{
-       struct link_encoder *link_enc;
-
-       link_enc = link_enc_cfg_get_link_enc_used_by_link(dc, stream->link);
-
-       return link_enc;
-}
-
 struct link_encoder *link_enc_cfg_get_link_enc(
                const struct dc_link *link)
 {
index dc650be3837e9f5bfe34ad235ebfc85bd2b258bf..f1afb31ac70bc5bbfd3c42399437d2771ef95612 100644 (file)
@@ -96,11 +96,6 @@ struct link_encoder *link_enc_cfg_get_link_enc_used_by_link(
 /* Return next available DIG link encoder. NULL if none available. */
 struct link_encoder *link_enc_cfg_get_next_avail_link_enc(struct dc *dc);
 
-/* Return DIG link encoder used by stream. NULL if unused. */
-struct link_encoder *link_enc_cfg_get_link_enc_used_by_stream(
-               struct dc *dc,
-               const struct dc_stream_state *stream);
-
 /* Return DIG link encoder. NULL if unused. */
 struct link_encoder *link_enc_cfg_get_link_enc(const struct dc_link *link);