drm/i915: Clean up LVDS pipe select bits
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 14 May 2018 18:28:27 +0000 (21:28 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 17 May 2018 16:32:26 +0000 (19:32 +0300)
commita44628b9293b81b53b00adbf90b3dd6e3b9dbc32
tree15494f50a3700cea1da050e5cf41ebdf3b82bb83
parent6102a8ee8ad60c51b5194e425c3cc8ce43aca384
drm/i915: Clean up LVDS pipe select bits

Clean up the LVDS pipe select bits. To make the whole situation a bit
less ugly we'll start to share the same code between .get_hw_state()
and the port state asserts.

v2: Order the defines shift,mask,value (Jani)
    Drop ruperfluous braces and whitesapce changes (Jani)
    Combine masks in compute_is_dual_link_lvds() (Jani)
v3: Fix LVDS_PIPE_SEL_MASK_CPT

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180514182827.28629-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_lvds.c