]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/display: Use helper to select C20 MPLLA/B
authorMika Kahola <mika.kahola@intel.com>
Fri, 5 Jan 2024 11:22:43 +0000 (13:22 +0200)
committerMika Kahola <mika.kahola@intel.com>
Mon, 8 Jan 2024 08:14:26 +0000 (10:14 +0200)
commit0fa647659c492c0a4342f7da70f5f946a40df250
tree60c9c9b23fa2b5a927f29a053f45782fbad5f435
parentc27f010aa1884276ee5dae72034d84987060c769
drm/i915/display: Use helper to select C20 MPLLA/B

We used to select between MPLLA/B with the following

state->tx[0] & C20_PHY_USE_MPLLB

Since this is used a few places within C20 PLL setting,
let's introduce a helper function to clean up the code
a bit.

Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240105112243.224199-1-mika.kahola@intel.com
drivers/gpu/drm/i915/display/intel_cx0_phy.c