drm/i915: Use macro in place of open-coded for_each_universal_plane loop
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 26 Oct 2016 22:51:29 +0000 (15:51 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 28 Oct 2016 18:27:19 +0000 (11:27 -0700)
commit2c4b49a0f73f142cdc81002eb306fd9b8b6308d9
treec659dbc3a7180dc4ad4a5d35b532292ce146835e
parent8b364b41ced2ac8eea9958ea084f10289a85419b
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>
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_pm.c