Skip to content

Commit 2b79dc1

Browse files
mattroperobclark
authored andcommitted
drm/shmobile: Restrict plane loops to only operate on legacy planes
Ensure that existing driver loops over all planes do not change behavior when we begin adding new types of planes (primary and cursor) to the DRM plane list in future patches. Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
1 parent af2b653 commit 2b79dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/shmobile/shmob_drm_crtc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ static void shmob_drm_crtc_start(struct shmob_drm_crtc *scrtc)
247247
lcdc_write(sdev, LDDDSR, value);
248248

249249
/* Setup planes. */
250-
list_for_each_entry(plane, &dev->mode_config.plane_list, head) {
250+
drm_for_each_legacy_plane(plane, &dev->mode_config.plane_list) {
251251
if (plane->crtc == crtc)
252252
shmob_drm_plane_setup(plane);
253253
}

0 commit comments

Comments
 (0)