[PATCH 2/2] drm/atmel-hlcdc: use helper to get crtc state
Daniel Vetter
daniel at ffwll.ch
Tue Mar 15 13:07:46 UTC 2016
On Tue, Mar 15, 2016 at 01:50:09PM +0100, Boris Brezillon wrote:
> On Tue, 15 Mar 2016 13:46:28 +0100
> Andrzej Hajda <a.hajda at samsung.com> wrote:
>
> > DRM core provide helper to access crtc state.
> >
> > Signed-off-by: Andrzej Hajda <a.hajda at samsung.com>
>
> Acked-by: Boris Brezillon <boris.brezillon at free-electrons.com>
Want me to pull this in through drm-misc?
-Daniel
>
> > ---
> > drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
> > index 1ffe9c3..d65dcae 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;
>
>
>
> --
> Boris Brezillon, Free Electrons
> Embedded Linux and Kernel engineering
> http://free-electrons.com
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
More information about the dri-devel
mailing list