mirror of https://gitee.com/openkylin/linux.git
drm/mediatek: Convert to new iterator macros
for_each_obj_in_state is about to be removed, so use the new atomic iterator macros. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: CK Hu <ck.hu@mediatek.com> Cc: Philipp Zabel <p.zabel@pengutronix.de> Cc: Matthias Brugger <matthias.bgg@gmail.com> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-mediatek@lists.infradead.org Link: http://patchwork.freedesktop.org/patch/msgid/20170712081344.25495-14-maarten.lankhorst@linux.intel.com Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:
parent
30ea752146
commit
e27986853a
|
@ -48,11 +48,11 @@ static void mtk_atomic_schedule(struct mtk_drm_private *private,
|
|||
static void mtk_atomic_wait_for_fences(struct drm_atomic_state *state)
|
||||
{
|
||||
struct drm_plane *plane;
|
||||
struct drm_plane_state *plane_state;
|
||||
struct drm_plane_state *new_plane_state;
|
||||
int i;
|
||||
|
||||
for_each_plane_in_state(state, plane, plane_state, i)
|
||||
mtk_fb_wait(plane->state->fb);
|
||||
for_each_new_plane_in_state(state, plane, new_plane_state, i)
|
||||
mtk_fb_wait(new_plane_state->fb);
|
||||
}
|
||||
|
||||
static void mtk_atomic_complete(struct mtk_drm_private *private,
|
||||
|
|
Loading…
Reference in New Issue