drm/i915: simplify intel_crtc_driving_pch
authorPaulo Zanoni <[email protected]>
Thu, 25 Oct 2012 12:37:43 +0000 (10:37 -0200)
committerDaniel Vetter <[email protected]>
Fri, 26 Oct 2012 08:24:44 +0000 (10:24 +0200)
commitfc316cbe4692fc0da19dfc9a87db270964d3d056
treeced5f6f8b7c02c43b4eea349c4df62cb2d59aaf3
parent1f544388be50653aec6334cefc4955a3588ae679
drm/i915: simplify intel_crtc_driving_pch

By forking Ironlake and Haswell functions. The only callers are
{ironlake,haswell}_crtc_enable anyway, and this way we won't need to
add other checks on the Haswell version for the next gens.

V2: Even simpler, as pointed by Jani Nikula.

Signed-off-by: Paulo Zanoni <[email protected]>
Reviewed-by: Jani Nikula <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/i915/intel_display.c