OSDN Git Service

drm/amd/display: Minor fix for dc_sink refactor
authorHarry Wentland <harry.wentland@amd.com>
Mon, 24 Jul 2017 18:04:27 +0000 (14:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:15:43 +0000 (18:15 -0400)
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-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_resource.c
drivers/gpu/drm/amd/display/dc/dc.h

index dea2943..eeefc9c 100644 (file)
@@ -1321,7 +1321,7 @@ static struct audio *find_first_free_audio(
 static void update_stream_signal(struct core_stream *stream)
 {
        if (stream->public.output_signal == SIGNAL_TYPE_NONE) {
-               const struct dc_sink *dc_sink = stream->public.sink;
+               struct dc_sink *dc_sink = stream->public.sink;
 
                if (dc_sink->sink_signal == SIGNAL_TYPE_NONE)
                        stream->signal = stream->sink->link->connector_signal;
index f250e87..f87f6c1 100644 (file)
@@ -469,7 +469,7 @@ enum surface_update_type {
  * Stream Interfaces
  ******************************************************************************/
 struct dc_stream {
-       const struct dc_sink *sink;
+       struct dc_sink *sink;
        struct dc_crtc_timing timing;
 
        struct rect src; /* composition area */