From: Daniel Vetter Date: Wed, 1 Jun 2016 22:06:25 +0000 (+0200) Subject: drm/i915: Use drm_atomic_get_existing_plane_state X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=831655e52e52d2b13aae6988935cce63830b1b4f;p=linux-beck.git drm/i915: Use drm_atomic_get_existing_plane_state We want to encapsulate the drm_atomic_state internals. v2: Use intel_atomic_get_existing_plane_state (Maarten). Reviewed-by: Maarten Lankhorst Signed-off-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/1464818821-5736-3-git-send-email-daniel.vetter@ffwll.ch --- diff --git a/drivers/gpu/drm/i915/intel_atomic.c b/drivers/gpu/drm/i915/intel_atomic.c index 50ff90aea721..8f0d006fe4a0 100644 --- a/drivers/gpu/drm/i915/intel_atomic.c +++ b/drivers/gpu/drm/i915/intel_atomic.c @@ -223,7 +223,8 @@ int intel_atomic_setup_scalers(struct drm_device *dev, continue; } - plane_state = to_intel_plane_state(drm_state->plane_states[i]); + plane_state = intel_atomic_get_existing_plane_state(drm_state, + intel_plane); scaler_id = &plane_state->scaler_id; }