drm/blend: Use new atomic iterator macros.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 16 Feb 2017 14:47:10 +0000 (15:47 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 6 Mar 2017 10:43:43 +0000 (11:43 +0100)
commit62c7bdc0496d6c9b6a6f683e42d949a21cb99181
tree46a525fb2752f0855e945e7c038fcfc0ec113b82
parentb4d93679d0eb0dd7a894726fc38d14cdf4f04cc7
drm/blend: Use new atomic iterator macros.

There are new iterator macros that annotate whether the new or old
state should be used. This is better than using a state that depends on
whether it's called before or after swap. For clarity, also rename the
variables from $obj_state to (old,new)_$obj_state as well.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1487256430-7625-6-git-send-email-maarten.lankhorst@linux.intel.com
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/drm_blend.c