[Intel-gfx] [PATCH 03/16] drm/atomic: Use the new helpers in drm_atomic_helper_disable_all()

Daniel Vetter daniel at ffwll.ch
Wed Jul 12 09:03:05 UTC 2017


On Wed, Jul 12, 2017 at 10:13:31AM +0200, Maarten Lankhorst wrote:
> for_each_obj_in_state will be removed, so don't use it here.
> 
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
> Cc: Daniel Vetter <daniel.vetter at intel.com>
> Cc: Jani Nikula <jani.nikula at linux.intel.com>
> Cc: Sean Paul <seanpaul at chromium.org>
> Cc: David Airlie <airlied at linux.ie>

Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>

> ---
>  drivers/gpu/drm/drm_atomic_helper.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c
> index 667ec97d4efb..391cd887f922 100644
> --- a/drivers/gpu/drm/drm_atomic_helper.c
> +++ b/drivers/gpu/drm/drm_atomic_helper.c
> @@ -2715,13 +2715,13 @@ int drm_atomic_helper_disable_all(struct drm_device *dev,
>  			goto free;
>  	}
>  
> -	for_each_connector_in_state(state, conn, conn_state, i) {
> +	for_each_new_connector_in_state(state, conn, conn_state, i) {
>  		ret = drm_atomic_set_crtc_for_connector(conn_state, NULL);
>  		if (ret < 0)
>  			goto free;
>  	}
>  
> -	for_each_plane_in_state(state, plane, plane_state, i) {
> +	for_each_new_plane_in_state(state, plane, plane_state, i) {
>  		ret = drm_atomic_set_crtc_for_plane(plane_state, NULL);
>  		if (ret < 0)
>  			goto free;
> -- 
> 2.11.0
> 
> _______________________________________________
> 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 Intel-gfx mailing list