aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2014-04-01 18:22:31 -0400
committerRob Clark <robdclark@gmail.com>2014-04-01 20:11:18 -0400
commit0886327aae9a840bed7f6c47ad4ca561a2aec825 (patch)
treefe5ec8ab907429cd3539b6b6d4dcab9f62dce1d2
parente27dde3e1c5117149c50b89d688528e279756113 (diff)
drm/exynos: Restrict plane loops to only operate on overlay planes (v2)
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. v2: Switch to using drm_for_each_legacy_plane() Cc: Inki Dae <inki.dae@samsung.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_crtc.c2
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_encoder.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
index 9cc92ae6b710..5c9afa198b2f 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
@@ -190,7 +190,7 @@ static void exynos_drm_crtc_disable(struct drm_crtc *crtc)
190 190
191 exynos_drm_crtc_dpms(crtc, DRM_MODE_DPMS_OFF); 191 exynos_drm_crtc_dpms(crtc, DRM_MODE_DPMS_OFF);
192 192
193 list_for_each_entry(plane, &crtc->dev->mode_config.plane_list, head) { 193 drm_for_each_legacy_plane(plane, &crtc->dev->mode_config.plane_list) {
194 if (plane->crtc != crtc) 194 if (plane->crtc != crtc)
195 continue; 195 continue;
196 196
diff --git a/drivers/gpu/drm/exynos/exynos_drm_encoder.c b/drivers/gpu/drm/exynos/exynos_drm_encoder.c
index 835c0f1e88a7..7e282e3d6038 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_encoder.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_encoder.c
@@ -101,7 +101,7 @@ static void exynos_drm_encoder_disable(struct drm_encoder *encoder)
101 exynos_drm_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); 101 exynos_drm_encoder_dpms(encoder, DRM_MODE_DPMS_OFF);
102 102
103 /* all planes connected to this encoder should be also disabled. */ 103 /* all planes connected to this encoder should be also disabled. */
104 list_for_each_entry(plane, &dev->mode_config.plane_list, head) { 104 drm_for_each_legacy_plane(plane, &dev->mode_config.plane_list) {
105 if (plane->crtc == encoder->crtc) 105 if (plane->crtc == encoder->crtc)
106 plane->funcs->disable_plane(plane); 106 plane->funcs->disable_plane(plane);
107 } 107 }