summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/core/dc_surface.c
diff options
context:
space:
mode:
authorJerry Zuo <Jerry.Zuo@amd.com>2017-08-25 16:16:10 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 18:17:14 -0400
commit608ac7bb3924178d7bfa8b88d79d3d9d72b8f485 (patch)
tree9bff91996faa5e9a66d42e9454ed874fadaa2bf0 /drivers/gpu/drm/amd/display/dc/core/dc_surface.c
parent9cffc573196bb3eea2d3dfd24893b6b9970cdfce (diff)
downloadop-kernel-dev-608ac7bb3924178d7bfa8b88d79d3d9d72b8f485.zip
op-kernel-dev-608ac7bb3924178d7bfa8b88d79d3d9d72b8f485.tar.gz
drm/amd/display: Rename dc validate_context and current_context
Rename all the dc validate_context to dc_stateĀ and dc current_context to current_state. Signed-off-by: Jerry Zuo <Jerry.Zuo@amd.com> Reviewed-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/core/dc_surface.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc_surface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_surface.c b/drivers/gpu/drm/amd/display/dc/core/dc_surface.c
index 0b6410f..e96f63e 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_surface.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_surface.c
@@ -104,12 +104,12 @@ const struct dc_plane_status *dc_plane_get_status(
plane_status = &plane_state->status;
core_dc = plane_state->ctx->dc;
- if (core_dc->current_context == NULL)
+ if (core_dc->current_state == NULL)
return NULL;
for (i = 0; i < core_dc->res_pool->pipe_count; i++) {
struct pipe_ctx *pipe_ctx =
- &core_dc->current_context->res_ctx.pipe_ctx[i];
+ &core_dc->current_state->res_ctx.pipe_ctx[i];
if (pipe_ctx->plane_state != plane_state)
continue;
OpenPOWER on IntegriCloud