]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic: Fix atomic helpers to use the new iterator macros, v3.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 1 Mar 2017 09:21:26 +0000 (10:21 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 6 Mar 2017 10:40:56 +0000 (11:40 +0100)
commit12c8e556bfab19c41f55f5fd98672bf20bc95f83
treecf9842533dc4aa02486ce6ff2805d8461c927f7d
parentaf287292f4d7f22059d9815c86d2266a9b8edfb8
drm/atomic: Fix atomic helpers to use the new iterator macros, v3.

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.

Changes since v1:
- Use old/new_*_state for variable names as much as possible. (pinchartl)
- Expand commit message.
Changes since v2:
- Rebase on top of link training patches.
- free -> cleanup (pinchartl)

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: http://patchwork.freedesktop.org/patch/msgid/aafa0d4d-474d-441f-3685-fa6c042ef37e@linux.intel.com
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/drm_atomic_helper.c