]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit76e4f681b0d50714c5b605d779c4fef8ab17c8dc
tree15fada6ee016564373f25112a82536f6058f536e
parent45032a5aece51938db663e9629e3b9455f940418
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