summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_pm.c
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2016-10-26 15:51:29 -0700
committerMatt Roper <matthew.d.roper@intel.com>2016-10-28 11:27:19 -0700
commit2c4b49a0f73f142cdc81002eb306fd9b8b6308d9 (patch)
treec659dbc3a7180dc4ad4a5d35b532292ce146835e /drivers/gpu/drm/i915/intel_pm.c
parent8b364b41ced2ac8eea9958ea084f10289a85419b (diff)
downloadlwn-2c4b49a0f73f142cdc81002eb306fd9b8b6308d9.tar.gz
lwn-2c4b49a0f73f142cdc81002eb306fd9b8b6308d9.zip
drm/i915: Use macro in place of open-coded for_each_universal_plane loop
This was the only use of (misleadingly-named) intel_num_planes() function, so we can remove it as well. Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1477522291-10874-3-git-send-email-matthew.d.roper@intel.com Reviewed-by: Paulo Zanoni <paulo.r.zanoni@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 58d3ba05b219..6f19e60628ed 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -4232,7 +4232,7 @@ static void skl_update_wm(struct drm_crtc *crtc)
if (crtc->state->active_changed) {
int plane;
- for (plane = 0; plane < intel_num_planes(intel_crtc); plane++)
+ for_each_universal_plane(dev_priv, pipe, plane)
skl_write_plane_wm(intel_crtc, &pipe_wm->planes[plane],
&results->ddb, plane);