summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_pm.c
diff options
context:
space:
mode:
authorDaniel Vetter2015-07-09 23:44:24 +0200
committerDaniel Vetter2015-07-22 16:25:45 +0200
commit4ea50e99bd3501aea394aa7a9e9bd3115faabf37 (patch)
tree48bdfe69ab74031be988747f9ce8433f1d2f16f7 /drivers/gpu/drm/i915/intel_pm.c
parentdrm/i915: Update DRIVER_DATE to 20150717 (diff)
downloadkernel-qcow2-linux-4ea50e99bd3501aea394aa7a9e9bd3115faabf37.tar.gz
kernel-qcow2-linux-4ea50e99bd3501aea394aa7a9e9bd3115faabf37.tar.xz
kernel-qcow2-linux-4ea50e99bd3501aea394aa7a9e9bd3115faabf37.zip
drm: Simplify drm_for_each_legacy_plane arguments
No need to pass the planelist when everyone just uses dev->mode_config.plane_list anyway. I want to add a pile more of iterators with unified (obj, dev) arguments. This is just prep. Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
-rw-r--r--drivers/gpu/drm/i915/intel_pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 0d3e01434860..5004c4a46a9e 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -2356,7 +2356,7 @@ static void ilk_compute_wm_parameters(struct drm_crtc *crtc,
p->pri.horiz_pixels = intel_crtc->config->pipe_src_w;
p->cur.horiz_pixels = intel_crtc->base.cursor->state->crtc_w;
- drm_for_each_legacy_plane(plane, &dev->mode_config.plane_list) {
+ drm_for_each_legacy_plane(plane, dev) {
struct intel_plane *intel_plane = to_intel_plane(plane);
if (intel_plane->pipe == pipe) {