drm/i915: simplify DP/DDI port width macros
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 30 Apr 2013 12:01:40 +0000 (14:01 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 2 May 2013 18:35:55 +0000 (20:35 +0200)
commit17aa6be9579eb204b426eeae146a43bf3dd05078
tree89cb3fbe1469969e1322b1dcaf7134236f7fc331
parentdce3271b1ee05ca01ebdde50d613d7b33ef178a9
drm/i915: simplify DP/DDI port width macros

If we ever leak a non-DP compliant port width through here, we have a
pretty serious issue. So just rip out all these WARNs - if we need
them it's probably better to have them at a central place where we
compute the dp lane count.

Also use the new DDI width macro for FDI mode.

Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
[danvet: fixup the embarrassing s/intel_dp->DP/temp/ mistake Paulo
spotted.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_ddi.c
drivers/gpu/drm/i915/intel_dp.c