mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
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
This commit is contained in:
parent
f55c1f62b6
commit
756009d0fd
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user