<div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">It seems the commit title is a little confusing. The change is to now pass by (const) reference rather than by value.</div><div dir="auto"><br></div><div dir="auto">Regards</div><div dir="auto">Nils</div></div><br><div class="gmail_quote"><div dir="ltr">Den fre 1 feb. 2019 16:29 skrev Bhawanpreet Lakha <<a href="mailto:Bhawanpreet.Lakha@amd.com">Bhawanpreet.Lakha@amd.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Yongqiang Sun <<a href="mailto:yongqiang.sun@amd.com" target="_blank" rel="noreferrer">yongqiang.sun@amd.com</a>><br>
<br>
Change-Id: Icfe018c7579ad2b3ef65195f578b8e44422d53f3<br>
Signed-off-by: Yongqiang Sun <<a href="mailto:yongqiang.sun@amd.com" target="_blank" rel="noreferrer">yongqiang.sun@amd.com</a>><br>
Reviewed-by: Aric Cyr <<a href="mailto:Aric.Cyr@amd.com" target="_blank" rel="noreferrer">Aric.Cyr@amd.com</a>><br>
Acked-by: Bhawanpreet Lakha <<a href="mailto:Bhawanpreet.Lakha@amd.com" target="_blank" rel="noreferrer">Bhawanpreet.Lakha@amd.com</a>><br>
---<br>
 drivers/gpu/drm/amd/display/dc/core/dc.c                 | 4 ++--<br>
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c        | 8 ++++----<br>
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h        | 2 +-<br>
 drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h | 2 +-<br>
 4 files changed, 8 insertions(+), 8 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c<br>
index e0ac009f00ab..d8579b207300 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c<br>
@@ -1560,11 +1560,11 @@ static void commit_planes_do_stream_update(struct dc *dc,<br>
<br>
                        if (stream_update->vline0_config && pipe_ctx->stream_res.tg->funcs->program_vline_interrupt)<br>
                                pipe_ctx->stream_res.tg->funcs->program_vline_interrupt(<br>
-                                       pipe_ctx-><a href="http://stream_res.tg" rel="noreferrer noreferrer" target="_blank">stream_res.tg</a>, VLINE0, stream->vline0_config);<br>
+                                       pipe_ctx-><a href="http://stream_res.tg" rel="noreferrer noreferrer" target="_blank">stream_res.tg</a>, VLINE0, &stream->vline0_config);<br>
<br>
                        if (stream_update->vline1_config && pipe_ctx->stream_res.tg->funcs->program_vline_interrupt)<br>
                                pipe_ctx->stream_res.tg->funcs->program_vline_interrupt(<br>
-                                       pipe_ctx-><a href="http://stream_res.tg" rel="noreferrer noreferrer" target="_blank">stream_res.tg</a>, VLINE1, stream->vline1_config);<br>
+                                       pipe_ctx-><a href="http://stream_res.tg" rel="noreferrer noreferrer" target="_blank">stream_res.tg</a>, VLINE1, &stream->vline1_config);<br>
<br>
                        if ((stream_update->hdr_static_metadata && !stream->use_dynamic_meta) ||<br>
                                        stream_update->vrr_infopacket ||<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c<br>
index 1d4f9b48ed7d..cefa322df8a6 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c<br>
@@ -95,19 +95,19 @@ static void optc1_disable_stereo(struct timing_generator *optc)<br>
 void optc1_program_vline_interrupt(<br>
                struct timing_generator *optc,<br>
                enum vline_select vline,<br>
-               struct vline_config vline_config)<br>
+               const struct vline_config *vline_config)<br>
 {<br>
        struct optc *optc1 = DCN10TG_FROM_TG(optc);<br>
<br>
        switch (vline) {<br>
        case VLINE0:<br>
                REG_SET_2(OTG_VERTICAL_INTERRUPT0_POSITION, 0,<br>
-                               OTG_VERTICAL_INTERRUPT0_LINE_START, vline_config.start_line,<br>
-                               OTG_VERTICAL_INTERRUPT0_LINE_END, vline_config.end_line);<br>
+                               OTG_VERTICAL_INTERRUPT0_LINE_START, vline_config->start_line,<br>
+                               OTG_VERTICAL_INTERRUPT0_LINE_END, vline_config->end_line);<br>
                break;<br>
        case VLINE1:<br>
                REG_SET(OTG_VERTICAL_INTERRUPT1_POSITION, 0,<br>
-                                       OTG_VERTICAL_INTERRUPT1_LINE_START, vline_config.start_line);<br>
+                                       OTG_VERTICAL_INTERRUPT1_LINE_START, vline_config->start_line);<br>
                break;<br>
        default:<br>
                break;<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h<br>
index 8eb71c0160a7..b34c8a240598 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h<br>
@@ -485,7 +485,7 @@ void optc1_program_timing(<br>
<br>
 void optc1_program_vline_interrupt(struct timing_generator *optc,<br>
                enum vline_select vline,<br>
-               struct vline_config vline_config);<br>
+               const struct vline_config *vline_config);<br>
<br>
 void optc1_program_global_sync(<br>
                struct timing_generator *optc);<br>
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h b/drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h<br>
index df64cf73ceb9..d22a406c19c0 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h<br>
+++ b/drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h<br>
@@ -151,7 +151,7 @@ struct timing_generator_funcs {<br>
                                                        bool use_vbios);<br>
        void (*program_vline_interrupt)(struct timing_generator *optc,<br>
                        enum vline_select vline,<br>
-                       struct vline_config vline_config);<br>
+                       const struct vline_config *vline_config);<br>
        bool (*enable_crtc)(struct timing_generator *tg);<br>
        bool (*disable_crtc)(struct timing_generator *tg);<br>
        bool (*is_counter_moving)(struct timing_generator *tg);<br>
-- <br>
2.17.1<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
<a href="mailto:amd-gfx@lists.freedesktop.org" target="_blank" rel="noreferrer">amd-gfx@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
</blockquote></div>