From: Imre Deak Date: Thu, 20 Nov 2025 17:23:56 +0000 (+0200) Subject: drm/i915/cx0: Use intel_port_to_tc() instead of open coding it X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07ba4ecfd111cb56464faf6ada9937b4e18fac23;p=thirdparty%2Fkernel%2Flinux.git drm/i915/cx0: Use intel_port_to_tc() instead of open coding it Use intel_port_to_tc() in mtl_port_to_pll_id(), instead of open coding the same. v2: s/USe/Use in commit message. Cc: Suraj Kandpal Cc: Mika Kahola Reviewed-by: Suraj Kandpal Signed-off-by: Imre Deak Link: https://patch.msgid.link/20251120172358.1282765-3-imre.deak@intel.com --- diff --git a/drivers/gpu/drm/i915/display/intel_dpll_mgr.c b/drivers/gpu/drm/i915/display/intel_dpll_mgr.c index 8ae8cc7ad79d..e0e5e5f65d19 100644 --- a/drivers/gpu/drm/i915/display/intel_dpll_mgr.c +++ b/drivers/gpu/drm/i915/display/intel_dpll_mgr.c @@ -206,7 +206,7 @@ enum intel_dpll_id icl_tc_port_to_pll_id(enum tc_port tc_port) enum intel_dpll_id mtl_port_to_pll_id(struct intel_display *display, enum port port) { if (port >= PORT_TC1) - return icl_tc_port_to_pll_id(port - PORT_TC1 + TC_PORT_1); + return icl_tc_port_to_pll_id(intel_port_to_tc(display, port)); switch (port) { case PORT_A: