]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/i915/dp_mst: Rename intel_dp::mst.active_links to mst.active_streams
authorImre Deak <imre.deak@intel.com>
Fri, 4 Apr 2025 15:03:10 +0000 (18:03 +0300)
committerImre Deak <imre.deak@intel.com>
Mon, 7 Apr 2025 13:25:34 +0000 (16:25 +0300)
intel_dp::mst.active_links actually indicates the number of MST streams,
not the number of MST links (one MST link carrying one or more MST
streams), rename the field accordingly.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://lore.kernel.org/r/20250404150310.1156696-7-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dp_mst.c

index 769e3a48d9c5e0b12e635d8f01ad46c5785ce7f6..94468a9d2e0d3a3600166b4ee23118282abe40b6 100644 (file)
@@ -1739,7 +1739,7 @@ struct intel_dp {
        struct {
                struct intel_dp_mst_encoder *stream_encoders[I915_MAX_PIPES];
                struct drm_dp_mst_topology_mgr mgr;
-               int active_links;
+               int active_streams;
        } mst;
 
        u32 (*get_aux_clock_divider)(struct intel_dp *dp, int index);
index 9ae025ace3c0d7d013efcbd12cd7e6b32eb49ab1..4c15dcb103aa2ed5650cbbef8c12be53132e6a80 100644 (file)
@@ -107,7 +107,7 @@ static struct intel_dp *to_primary_dp(struct intel_encoder *encoder)
 
 int intel_dp_mst_active_streams(struct intel_dp *intel_dp)
 {
-       return intel_dp->mst.active_links;
+       return intel_dp->mst.active_streams;
 }
 
 static bool intel_dp_mst_dec_active_streams(struct intel_dp *intel_dp)
@@ -115,12 +115,12 @@ static bool intel_dp_mst_dec_active_streams(struct intel_dp *intel_dp)
        struct intel_display *display = to_intel_display(intel_dp);
 
        drm_dbg_kms(display->drm, "active MST streams %d -> %d\n",
-                   intel_dp->mst.active_links, intel_dp->mst.active_links - 1);
+                   intel_dp->mst.active_streams, intel_dp->mst.active_streams - 1);
 
-       if (drm_WARN_ON(display->drm, intel_dp->mst.active_links == 0))
+       if (drm_WARN_ON(display->drm, intel_dp->mst.active_streams == 0))
                return true;
 
-       return --intel_dp->mst.active_links == 0;
+       return --intel_dp->mst.active_streams == 0;
 }
 
 static bool intel_dp_mst_inc_active_streams(struct intel_dp *intel_dp)
@@ -128,9 +128,9 @@ static bool intel_dp_mst_inc_active_streams(struct intel_dp *intel_dp)
        struct intel_display *display = to_intel_display(intel_dp);
 
        drm_dbg_kms(display->drm, "active MST streams %d -> %d\n",
-                   intel_dp->mst.active_links, intel_dp->mst.active_links + 1);
+                   intel_dp->mst.active_streams, intel_dp->mst.active_streams + 1);
 
-       return intel_dp->mst.active_links++ == 0;
+       return intel_dp->mst.active_streams++ == 0;
 }
 
 static int intel_dp_mst_max_dpt_bpp(const struct intel_crtc_state *crtc_state,