aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/display/intel_dp_mst.c
diff options
context:
space:
mode:
authorImre Deak <[email protected]>2025-04-04 15:03:10 +0000
committerImre Deak <[email protected]>2025-04-07 13:25:34 +0000
commit8b6b67938ed5a0a4385c38efad91cb3e6f7e5765 (patch)
tree02f689dc595bafd2220485005408a1815ece9d26 /drivers/gpu/drm/i915/display/intel_dp_mst.c
parentdrm/i915/dp_mst: Use intel_dp_mst_active_streams() instead of open-coding it (diff)
downloadkernel-8b6b67938ed5a0a4385c38efad91cb3e6f7e5765.tar.gz
kernel-8b6b67938ed5a0a4385c38efad91cb3e6f7e5765.zip
drm/i915/dp_mst: Rename intel_dp::mst.active_links to mst.active_streams
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 <[email protected]> Signed-off-by: Imre Deak <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dp_mst.c')
-rw-r--r--drivers/gpu/drm/i915/display/intel_dp_mst.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c b/drivers/gpu/drm/i915/display/intel_dp_mst.c
index 9ae025ace3c0..4c15dcb103aa 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_mst.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_mst.c
@@ -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,