]> git.baikalelectronics.ru Git - kernel.git/commit
drm: rcar-du: Use new iterator macros
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 12 Jul 2017 10:43:40 +0000 (12:43 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 3 Aug 2017 13:17:35 +0000 (16:17 +0300)
commitd176e843dbd997381399f33605e4d780e17d99ad
tree2d2d33e5f91e6a7b1801818c049e7b2d046cba0c
parentb84d167f93e2bb0c3b7a5311d0f10a28330a77fe
drm: rcar-du: Use new iterator macros

for_each_obj_in_state is about to be removed, so use the correct new
iterator macros.

Also look at new_plane_state instead of plane->state when looking up
the hw planes in use. They should be the same except when reallocating,
(in which case this code is skipped) and we should really stop looking
at obj->state whenever possible.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_plane.c