diff options
| author | Jani Nikula <jani.nikula@intel.com> | 2024-11-20 15:03:35 +0300 |
|---|---|---|
| committer | Jani Nikula <jani.nikula@intel.com> | 2024-12-16 19:09:38 +0300 |
| commit | 399f7b67161eaafa3df3bea22e0663fafa3212a1 (patch) | |
| tree | 7d907c7e09ce3d6b553f53a3978ccb508f9eb9a1 /drivers/gpu/drm/i915/display/skl_scaler.c | |
| parent | adceb416888daf0c53048d1cc5411527dcc8d24c (diff) | |
| download | linux-399f7b67161eaafa3df3bea22e0663fafa3212a1.tar.xz | |
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: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/377e2b400d126776224fc49874ed9cb03ac3123c.1732104170.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/skl_scaler.c')
| -rw-r--r-- | drivers/gpu/drm/i915/display/skl_scaler.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/skl_scaler.c b/drivers/gpu/drm/i915/display/skl_scaler.c index 11f73659c1b6..ae21fce534dc 100644 --- a/drivers/gpu/drm/i915/display/skl_scaler.c +++ b/drivers/gpu/drm/i915/display/skl_scaler.c @@ -3,6 +3,7 @@ * Copyright © 2020 Intel Corporation */ +#include "i915_drv.h" #include "i915_reg.h" #include "intel_de.h" #include "intel_display_types.h" |
