drm/i915/dp: use actual link rate values in struct link_config_limits
authorJani Nikula <jani.nikula@intel.com>
Mon, 23 Aug 2021 16:18:06 +0000 (19:18 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 24 Aug 2021 07:40:22 +0000 (10:40 +0300)
commitf5b21c2e3da4594140b916dfed0e007d3fe8267c
treeeedb441e32262fde2ab76bc85b6062a2567cc6eb
parentc79b846f892d64f169d3dba18fd2500a83805e3a
drm/i915/dp: use actual link rate values in struct link_config_limits

The MST code uses actual link rates in the limits struct, while the DP
code in general uses indexes to the ->common_rates[] array. Fix the
confusion by using actual link rate values everywhere. This is a better
abstraction than some obscure index.

Rename the struct members while at it to ensure all the places are
covered.

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/d70ab7261abacd367d3a6a47102575eb88a55cd4.1629735412.git.jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_dp.h
drivers/gpu/drm/i915/display/intel_dp_mst.c