drm/amd/display: Remove unused parameter plane_states
authorDavid Francis <David.Francis@amd.com>
Mon, 10 Dec 2018 15:18:21 +0000 (10:18 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:04:43 +0000 (15:04 -0500)
[Why]
The function dc_commit_updates_for_stream had a parameter called
plane_states.  It was never used.  It was getting in the way
of some cleanup work

[How]
Remove it

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc_stream.h

index b7938e5..85e4afc 100644 (file)
@@ -4673,7 +4673,6 @@ static void amdgpu_dm_do_flip(struct drm_crtc *crtc,
                                             1,
                                             acrtc_state->stream,
                                             &stream_update,
-                                            &surface_updates->surface,
                                             state);
        mutex_unlock(&adev->dm.dc_lock);
 
@@ -4772,7 +4771,7 @@ static bool commit_planes_to_stream(
                        dc,
                        updates,
                        new_plane_count,
-                       dc_stream, stream_update, plane_states, state);
+                       dc_stream, stream_update, state);
        mutex_unlock(&dm->dc_lock);
 
        kfree(flip_addr);
index 024f7ea..af907d5 100644 (file)
@@ -1620,7 +1620,6 @@ void dc_commit_updates_for_stream(struct dc *dc,
                int surface_count,
                struct dc_stream_state *stream,
                struct dc_stream_update *stream_update,
-               struct dc_plane_state **plane_states,
                struct dc_state *state)
 {
        const struct dc_stream_status *stream_status;
index bfb741b..7bb1da1 100644 (file)
@@ -180,7 +180,6 @@ void dc_commit_updates_for_stream(struct dc *dc,
                int surface_count,
                struct dc_stream_state *stream,
                struct dc_stream_update *stream_update,
-               struct dc_plane_state **plane_states,
                struct dc_state *state);
 /*
  * Log the current stream state.