drm/i915: Use the direct mapping of pipe->crtc
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Sep 2010 14:44:14 +0000 (15:44 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Sep 2010 16:00:36 +0000 (17:00 +0100)
commitf875c15a4fbf37534dda30771d8bde8604fbbf09
tree6c90c65af1198bf1c9a2120e4480837b59a115be
parent4ef69c7a64b78d477d1666eba258ca049e8bac91
drm/i915: Use the direct mapping of pipe->crtc

Why iterate all the crtcs to find the pipe, when we already know which
crtc is attached to which pipe?

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_dvo.c
drivers/gpu/drm/i915/intel_lvds.c