drm/i915: add HAS_DDI check
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 23 Nov 2012 17:30:39 +0000 (15:30 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 29 Nov 2012 13:58:53 +0000 (14:58 +0100)
commitaffa935440733a79c5a9eb0e5357e2564ca4b355
tree3bc587ef85dc71c639e55ca50d27defa3c20e28e
parent20749730e39bba1c6100bec0e0d1a45c99db559e
drm/i915: add HAS_DDI check

And use it whenever we call code that uses the DDIs. We already have
intel_ddi.c and prefix every function with intel_ddi_something instead of
haswell_something, so I think replacing the checks with HAS_DDI makes more
sense. Just a cosmetical change, yes I know, but I have this OCD...

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_crt.c
drivers/gpu/drm/i915/intel_ddi.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_hdmi.c