summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/display/intel_dp.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2021-08-23 19:18:06 +0300
committerJani Nikula <jani.nikula@intel.com>2021-08-24 10:40:22 +0300
commitf5b21c2e3da4594140b916dfed0e007d3fe8267c (patch)
treeeedb441e32262fde2ab76bc85b6062a2567cc6eb /drivers/gpu/drm/i915/display/intel_dp.h
parentc79b846f892d64f169d3dba18fd2500a83805e3a (diff)
downloadlinux-f5b21c2e3da4594140b916dfed0e007d3fe8267c.tar.gz
linux-f5b21c2e3da4594140b916dfed0e007d3fe8267c.tar.bz2
linux-f5b21c2e3da4594140b916dfed0e007d3fe8267c.zip
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
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dp.h')
-rw-r--r--drivers/gpu/drm/i915/display/intel_dp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dp.h b/drivers/gpu/drm/i915/display/intel_dp.h
index 680631b5b437..1345d588fc6d 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.h
+++ b/drivers/gpu/drm/i915/display/intel_dp.h
@@ -26,7 +26,7 @@ struct intel_dp;
struct intel_encoder;
struct link_config_limits {
- int min_clock, max_clock;
+ int min_rate, max_rate;
int min_lane_count, max_lane_count;
int min_bpp, max_bpp;
};