drm/i915/ddi: use switch case instead of if ladder for ddi_get_encoder_port
authorJani Nikula <jani.nikula@intel.com>
Tue, 29 Sep 2015 07:24:26 +0000 (10:24 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Sep 2015 08:20:40 +0000 (10:20 +0200)
commit8cd21b7f28ed1f12059935512edaaadf1deaeb67
tree745da10bb6cc5b601d14a58895c3696a2c78c2fa
parent85b98a4c30c60272b2830d9acc43121eb2988bd2
drm/i915/ddi: use switch case instead of if ladder for ddi_get_encoder_port

Make the alternatives stand  out better.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c