Skip to content

Commit 756009d

Browse files
committed
drm/i915/dp: Drop intel_dp parameter from intel_dp_compute_config_link_bpp_limits()
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
1 parent f55c1f6 commit 756009d

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

drivers/gpu/drm/i915/display/intel_dp.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2654,13 +2654,13 @@ dsc_throughput_quirk_max_bpp_x16(const struct intel_connector *connector,
26542654
* range, crtc_state and dsc mode. Return true on success.
26552655
*/
26562656
static bool
2657-
intel_dp_compute_config_link_bpp_limits(struct intel_dp *intel_dp,
2658-
const struct intel_connector *connector,
2657+
intel_dp_compute_config_link_bpp_limits(struct intel_connector *connector,
26592658
const struct intel_crtc_state *crtc_state,
26602659
bool dsc,
26612660
struct link_config_limits *limits)
26622661
{
2663-
struct intel_display *display = to_intel_display(intel_dp);
2662+
struct intel_display *display = to_intel_display(connector);
2663+
struct intel_dp *intel_dp = intel_attached_dp(connector);
26642664
const struct drm_display_mode *adjusted_mode =
26652665
&crtc_state->hw.adjusted_mode;
26662666
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,
28322832

28332833
intel_dp_test_compute_config(intel_dp, crtc_state, limits);
28342834

2835-
return intel_dp_compute_config_link_bpp_limits(intel_dp,
2836-
connector,
2835+
return intel_dp_compute_config_link_bpp_limits(connector,
28372836
crtc_state,
28382837
dsc,
28392838
limits);

0 commit comments

Comments
 (0)