drm/i915: Convert DIP port switch cases to a simple macro
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 23 Jan 2014 21:15:34 +0000 (23:15 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 13 Feb 2014 09:43:21 +0000 (10:43 +0100)
commit822cdc52936e026a24c684ccc98850b251c06206
treeb5a9ede6d73aafc1b88136bf3987f2a1821be7f7
parent4d10cc0f861ed776f6cf953fd1df933c8b5c9812
drm/i915: Convert DIP port switch cases to a simple macro

We have a couple of switch cases to compute the port value for the
VIDEO_DIP_CTL register. Replace them with a simple macro.

We do lose a few BUG() calls, but many people may consider that
an improvement.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_hdmi.c