From: Damien Lespiau Date: Fri, 7 Feb 2014 19:12:52 +0000 (+0000) Subject: drm/i915: Use I915_MAX_PIPES in the pipe/plane_to_crtc_mapping definitions X-Git-Tag: MMI-PSA29.97-13-9~12412^2~59^2~59 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=76c4ac0416b4bff95903eca8f8550631a81ba6df;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drm/i915: Use I915_MAX_PIPES in the pipe/plane_to_crtc_mapping definitions Reviewed-by: Mika Kuoppala Reviewed-by: Ville Syrjälä Signed-off-by: Damien Lespiau Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 36ea18999dee..80ff7dfd5b76 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -1500,8 +1500,8 @@ typedef struct drm_i915_private { struct sdvo_device_mapping sdvo_mappings[2]; - struct drm_crtc *plane_to_crtc_mapping[3]; - struct drm_crtc *pipe_to_crtc_mapping[3]; + struct drm_crtc *plane_to_crtc_mapping[I915_MAX_PIPES]; + struct drm_crtc *pipe_to_crtc_mapping[I915_MAX_PIPES]; wait_queue_head_t pending_flip_queue; #ifdef CONFIG_DEBUG_FS