drm/i915: Remove I915_MAX_PIPES dependency for DDB allocation
authorMika Kahola <mika.kahola@intel.com>
Tue, 10 Oct 2017 10:17:03 +0000 (13:17 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 10 Oct 2017 15:15:06 +0000 (18:15 +0300)
commit2b68504be6b47fabd4d14c89bbea37a6fd0fd28c
treec0ede3887620734db3bf82fd6d11de194979c3ab
parent0d5f662575e542ed22b5054c2b0887f42271be5e
drm/i915: Remove I915_MAX_PIPES dependency for DDB allocation

Remove dependency for I915_MAX_PIPES by replacing it with
for_each_pipe() macro.

v2: use 'enum pipe pipe' instead of 'i'

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1507630626-23806-3-git-send-email-mika.kahola@intel.com
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_pm.c