drm/i915/dpll: Accept intel_display as argument for shared_dpll_init
authorSuraj Kandpal <suraj.kandpal@intel.com>
Wed, 12 Feb 2025 07:45:41 +0000 (13:15 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Wed, 12 Feb 2025 09:48:59 +0000 (15:18 +0530)
commit7d7529582cc29ab06bb0b269f3364586abacff52
tree62368c2a4471080ca3810d5340b8af1034cca88e
parent65596167857fac39ec9e11ef52d2c51b46409bc7
drm/i915/dpll: Accept intel_display as argument for shared_dpll_init

Use intel_display as an argument for intel_shared_dpll_init() and
replace drm_i915_private in function wherever possible.
While at it prefer using display->platform.xx over IS_PLATFORM.
Initialize dpio_phy and dpio_channel since with IS_GEMINILAKE()
and IS_BROXTON() compiler knows it will return false for xe but
since display->platform.xx is a runtime check which means the
compiler sees a potential path where uninitialized variables
could be accessed and raises a warning.

--v2
-Amend commit message to explain why some variables were
initialized [Jani]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250212074542.3569452-8-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_display_driver.c
drivers/gpu/drm/i915/display/intel_dpll_mgr.c
drivers/gpu/drm/i915/display/intel_dpll_mgr.h