]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/cx0: Drop encoder from port clock calculation
authorMika Kahola <mika.kahola@intel.com>
Mon, 19 Jan 2026 09:37:46 +0000 (09:37 +0000)
committerMika Kahola <mika.kahola@intel.com>
Tue, 20 Jan 2026 08:52:51 +0000 (10:52 +0200)
For C10 and C20 we have unused encoder parameter passed
to port clock calculation function. Remove the encoder from
being passed to the port clock calculation function.

Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patch.msgid.link/20260119093757.2850233-6-mika.kahola@intel.com
drivers/gpu/drm/i915/display/intel_cx0_phy.c

index 6447d7c80ffca07ac5b36573c880c3ae5e189906..77378e057908aa025798a2f2467af193a2741b15 100644 (file)
@@ -2103,8 +2103,7 @@ static bool cx0pll_state_is_dp(const struct intel_cx0pll_state *pll_state)
        return c20pll_state_is_dp(&pll_state->c20);
 }
 
-static int intel_c10pll_calc_port_clock(struct intel_encoder *encoder,
-                                       const struct intel_c10pll_state *pll_state)
+static int intel_c10pll_calc_port_clock(const struct intel_c10pll_state *pll_state)
 {
        unsigned int frac_quot = 0, frac_rem = 0, frac_den = 1;
        unsigned int multiplier, tx_clk_div, hdmi_div, refclk = 38400;
@@ -2135,8 +2134,7 @@ static bool intel_c20phy_use_mpllb(const struct intel_c20pll_state *state)
        return state->tx[0] & C20_PHY_USE_MPLLB;
 }
 
-static int intel_c20pll_calc_port_clock(struct intel_encoder *encoder,
-                                       const struct intel_c20pll_state *pll_state)
+static int intel_c20pll_calc_port_clock(const struct intel_c20pll_state *pll_state)
 {
        unsigned int frac, frac_en, frac_quot, frac_rem, frac_den;
        unsigned int multiplier, refclk = 38400;
@@ -2325,7 +2323,7 @@ static void intel_c10pll_readout_hw_state(struct intel_encoder *encoder,
 
        intel_cx0_phy_transaction_end(encoder, wakeref);
 
-       pll_state->clock = intel_c10pll_calc_port_clock(encoder, pll_state);
+       pll_state->clock = intel_c10pll_calc_port_clock(pll_state);
 
        cx0pll_state->ssc_enabled = readout_ssc_state(encoder, true);
 
@@ -2824,7 +2822,7 @@ static void intel_c20pll_readout_hw_state(struct intel_encoder *encoder,
                }
        }
 
-       pll_state->clock = intel_c20pll_calc_port_clock(encoder, pll_state);
+       pll_state->clock = intel_c20pll_calc_port_clock(pll_state);
 
        intel_cx0_phy_transaction_end(encoder, wakeref);
 
@@ -3731,9 +3729,9 @@ int intel_cx0pll_calc_port_clock(struct intel_encoder *encoder,
                                 const struct intel_cx0pll_state *pll_state)
 {
        if (intel_encoder_is_c10phy(encoder))
-               return intel_c10pll_calc_port_clock(encoder, &pll_state->c10);
+               return intel_c10pll_calc_port_clock(&pll_state->c10);
 
-       return intel_c20pll_calc_port_clock(encoder, &pll_state->c20);
+       return intel_c20pll_calc_port_clock(&pll_state->c20);
 }
 
 /*