OSDN Git Service

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)
commit415c3ac3f2565a7fffab1fdb5ef4f9b6bc0065f1
treecf9842533dc4aa02486ce6ff2805d8461c927f7d
parent7160d57b6f81185c4bcf2365dc152c1905ff2ab7
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