[PATCH 2/2] drm/atmel-hlcdc: use helper to get crtc state

Boris Brezillon boris.brezillon at free-electrons.com
Tue Mar 15 12:50:09 UTC 2016


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>

> ---
>  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


More information about the dri-devel mailing list