]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/display: add dcn30_link_encoder_validate_output_with_stream to header
authorEric Bernstein <eric.bernstein@amd.com>
Mon, 30 Nov 2020 19:30:38 +0000 (14:30 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Dec 2020 16:34:04 +0000 (11:34 -0500)
[Why]
dcn30_link_encoder_validate_output_with_stream was a static function.

[How]
remove the static define and include it in the header.

Signed-off-by: Eric Bernstein <eric.bernstein@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dio_link_encoder.c
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dio_link_encoder.h

index b409f6b2bfd832bea2f68da1e1404e0441ba4b5e..4592ccdfa9b037603ca17bddeee5ce5fefc2efc5 100644 (file)
@@ -119,7 +119,7 @@ static const struct link_encoder_funcs dce110_lnk_enc_funcs = {
        .disable_hpd = dce110_link_encoder_disable_hpd,
        .is_dig_enabled = dce110_is_dig_enabled,
        .destroy = dce110_link_encoder_destroy,
-       .get_max_link_cap = dce110_link_encoder_get_max_link_cap
+       .get_max_link_cap = dce110_link_encoder_get_max_link_cap,
 };
 
 static enum bp_result link_transmitter_control(
index 2ae159e2dd6e594c2814dad59ed50e23d5760d5c..46ea39f5ef8d8c052e6071518b5b679fbc27ddb0 100644 (file)
@@ -51,7 +51,7 @@
        (enc10->link_regs->index)
 
 
-static bool dcn30_link_encoder_validate_output_with_stream(
+bool dcn30_link_encoder_validate_output_with_stream(
        struct link_encoder *enc,
        const struct dc_stream_state *stream)
 {
index 2fbf879cd327e13b06bf8f5875857e4ff98700ac..f2d90f2b8bf1286689cba01e9f2a4fb39e62a54f 100644 (file)
@@ -78,4 +78,8 @@ void dcn30_link_encoder_construct(
 
 void enc3_hw_init(struct link_encoder *enc);
 
+bool dcn30_link_encoder_validate_output_with_stream(
+       struct link_encoder *enc,
+       const struct dc_stream_state *stream);
+
 #endif /* __DC_LINK_ENCODER__DCN30_H__ */