diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2016-03-15 13:46:28 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-03-15 14:09:48 +0100 |
commit | b47ff7e6a534bc285eb98f90eadd2a56e2e54056 (patch) | |
tree | 5708294e8ac6fa4813caa016ed808ce1038473ab /drivers/gpu/drm/atmel-hlcdc | |
parent | 2943ef32c97666a6556c98496722c4b72420ad37 (diff) | |
download | blackbird-obmc-linux-b47ff7e6a534bc285eb98f90eadd2a56e2e54056.tar.gz blackbird-obmc-linux-b47ff7e6a534bc285eb98f90eadd2a56e2e54056.zip |
drm/atmel-hlcdc: use helper to get crtc state
DRM core provide helper to access crtc state.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1458045988-25246-1-git-send-email-a.hajda@samsung.com
Diffstat (limited to 'drivers/gpu/drm/atmel-hlcdc')
-rw-r--r-- | drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c index 1ffe9c329c46..d65dcaee3832 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c @@ -558,7 +558,7 @@ static int atmel_hlcdc_plane_atomic_check(struct drm_plane *p, if (!state->base.crtc || !fb) return 0; - crtc_state = s->state->crtc_states[drm_crtc_index(s->crtc)]; + crtc_state = drm_atomic_get_existing_crtc_state(s->state, s->crtc); mode = &crtc_state->adjusted_mode; state->src_x = s->src_x; |