]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/dp: Drop intel_dp parameter from intel_dp_compute_config_link_bpp_limits()
authorImre Deak <imre.deak@intel.com>
Mon, 22 Dec 2025 15:35:34 +0000 (17:35 +0200)
committerImre Deak <imre.deak@intel.com>
Tue, 13 Jan 2026 16:42:14 +0000 (18:42 +0200)
The intel_dp pointer can be deducted from the connector pointer, so it's
enough to pass only connector to
intel_dp_compute_config_link_bpp_limits(), do so.

Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20251222153547.713360-8-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp.c

index daab43187eb0f1a2c0cf812c7b8005b946446c3c..bbb7cff9081835c35822dd614f13bf2bc300cb6d 100644 (file)
@@ -2654,13 +2654,13 @@ dsc_throughput_quirk_max_bpp_x16(const struct intel_connector *connector,
  * range, crtc_state and dsc mode. Return true on success.
  */
 static bool
-intel_dp_compute_config_link_bpp_limits(struct intel_dp *intel_dp,
-                                       const struct intel_connector *connector,
+intel_dp_compute_config_link_bpp_limits(struct intel_connector *connector,
                                        const struct intel_crtc_state *crtc_state,
                                        bool dsc,
                                        struct link_config_limits *limits)
 {
-       struct intel_display *display = to_intel_display(intel_dp);
+       struct intel_display *display = to_intel_display(connector);
+       struct intel_dp *intel_dp = intel_attached_dp(connector);
        const struct drm_display_mode *adjusted_mode =
                &crtc_state->hw.adjusted_mode;
        const struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
@@ -2832,8 +2832,7 @@ intel_dp_compute_config_limits(struct intel_dp *intel_dp,
 
        intel_dp_test_compute_config(intel_dp, crtc_state, limits);
 
-       return intel_dp_compute_config_link_bpp_limits(intel_dp,
-                                                      connector,
+       return intel_dp_compute_config_link_bpp_limits(connector,
                                                       crtc_state,
                                                       dsc,
                                                       limits);