mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
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 <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
This commit is contained in:
parent
8aa2945f04
commit
07ba4ecfd1
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user