drm/i915/mst: drop connector parameter from intel_dp_mst_compute_m_n()
authorJani Nikula <jani.nikula@intel.com>
Fri, 3 Jan 2025 13:52:26 +0000 (15:52 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 7 Jan 2025 16:43:54 +0000 (18:43 +0200)
intel_dp_mst_compute_m_n() doesn't need the connector. Remove the
parameter.

Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/eec2e9a2e2dc3d166ac94bb9de691246a14d3945.1735912293.git.jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_dp_mst.c

index e1340cff77fe942a88ade9367d7bf4649748ffb0..927b0f05a691ebdc8d47c92f46c3dc8f1e1a14de 100644 (file)
@@ -167,7 +167,6 @@ static int intel_dp_mst_bw_overhead(const struct intel_crtc_state *crtc_state,
 }
 
 static void intel_dp_mst_compute_m_n(const struct intel_crtc_state *crtc_state,
-                                    const struct intel_connector *connector,
                                     int overhead,
                                     int bpp_x16,
                                     struct intel_link_m_n *m_n)
@@ -282,7 +281,7 @@ static int mst_stream_find_vcpi_slots_for_bpp(struct intel_dp *intel_dp,
                remote_bw_overhead = intel_dp_mst_bw_overhead(crtc_state,
                                                              true, dsc_slice_count, link_bpp_x16);
 
-               intel_dp_mst_compute_m_n(crtc_state, connector,
+               intel_dp_mst_compute_m_n(crtc_state,
                                         local_bw_overhead,
                                         link_bpp_x16,
                                         &crtc_state->dp_m_n);