Commit 0b34c389 authored by Jani Nikula's avatar Jani Nikula Committed by Kamal Ap
Browse files

BACKPORT: drm/i915/uncore: add to_intel_uncore() and use it



Add to_intel_uncore() function to avoid the inclusion of i915_drv.h from
intel_de.h. This reveals a number of implicit dependencies on i915_drv.h
that need to be added.

For now, to_intel_uncore() can be an inline function, with all the
includes in compat intel_uncore.h, as long as i915_drv.h isn't
included. The implicit dependencies on i915_drv.h is a problem in
display code, but the same is not true for xe_device.h etc.

Reviewed-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/377e2b400d126776224fc49874ed9cb03ac3123c.1732104170.git.jani.nikula@intel.com


(cherry picked from commit 399f7b67)

Conflicts:
   drivers/gpu/drm/i915/display/intel_alpm.c
   drivers/gpu/drm/i915/display/intel_de.h
   drivers/gpu/drm/i915/display/intel_dmc_wl.c

Bug: 432032023
Test: None
Change-Id: Id4608265454717adba6644313662b0f102323f7b
Signed-off-by: default avatarAp, Kamal <kamal.ap@intel.corp-partner.google.com>
parent a7e497e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment