All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@free-electrons.com>
To: Andrzej Hajda <a.hajda@samsung.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	dri-devel@lists.freedesktop.org,
	Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Subject: Re: [PATCH 2/2] drm/atmel-hlcdc: use helper to get crtc state
Date: Tue, 15 Mar 2016 13:50:09 +0100	[thread overview]
Message-ID: <20160315135009.2fa7de69@bbrezillon> (raw)
In-Reply-To: <1458045988-25246-1-git-send-email-a.hajda@samsung.com>

On Tue, 15 Mar 2016 13:46:28 +0100
Andrzej Hajda <a.hajda@samsung.com> wrote:

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

> ---
>  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@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2016-03-15 12:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-15 12:46 [PATCH 2/2] drm/atmel-hlcdc: use helper to get crtc state Andrzej Hajda
2016-03-15 12:50 ` Boris Brezillon [this message]
2016-03-15 13:07   ` Daniel Vetter
2016-03-15 13:08     ` Boris Brezillon
2016-03-15 13:11       ` Daniel Vetter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160315135009.2fa7de69@bbrezillon \
    --to=boris.brezillon@free-electrons.com \
    --cc=a.hajda@samsung.com \
    --cc=b.zolnierkie@samsung.com \
    --cc=daniel.vetter@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=m.szyprowski@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.