drm/i915/dp: move link rate arrays where they're used
authorJani Nikula <jani.nikula@intel.com>
Tue, 27 Feb 2018 10:59:11 +0000 (12:59 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 28 Feb 2018 21:04:40 +0000 (23:04 +0200)
commit229675d5c0384c170c665387c2fec75a2ddcb61a
tree15fada6ee016564373f25112a82536f6058f536e
parent449059a9692c5f01305bffcca72befc4621f6dbb
drm/i915/dp: move link rate arrays where they're used

Localize link rate arrays by moving them to the functions where they're
used. Further clarify the distinction between source and sink
capabilities. Split pre and post Haswell arrays, and get rid of the
array size arithmetics. Use a direct rate value in the paranoia case of
no common rates find.

Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180227105911.4485-1-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_dp.c