]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/cx0: Use intel_port_to_tc() instead of open coding it
authorImre Deak <imre.deak@intel.com>
Thu, 20 Nov 2025 17:23:56 +0000 (19:23 +0200)
committerImre Deak <imre.deak@intel.com>
Fri, 21 Nov 2025 18:50:54 +0000 (20:50 +0200)
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 <suraj.kandpal@intel.com>
Cc: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20251120172358.1282765-3-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dpll_mgr.c

index 8ae8cc7ad79d340a493595a59a555121b5994e4c..e0e5e5f65d19332c6c88e1e31f45eed09fb684fb 100644 (file)
@@ -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: