drm/xe/display: Prefer forward declarations

There is no need to include xe_device.h in the xe_display.h header.
Include it in the xe_display.c file instead.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patch.msgid.link/20260512183342.3374-4-michal.wajdeczko@intel.com
This commit is contained in:
Michal Wajdeczko 2026-05-12 20:33:38 +02:00
parent b424e0db82
commit 9350f47228
2 changed files with 4 additions and 1 deletions

View File

@ -36,6 +36,7 @@
#include "intel_hotplug.h"
#include "intel_opregion.h"
#include "skl_watermark.h"
#include "xe_device.h"
#include "xe_display_bo.h"
#include "xe_display_pcode.h"
#include "xe_display_rpm.h"

View File

@ -6,9 +6,11 @@
#ifndef _XE_DISPLAY_H_
#define _XE_DISPLAY_H_
#include "xe_device.h"
#include <linux/types.h>
struct drm_driver;
struct pci_dev;
struct xe_device;
#if IS_ENABLED(CONFIG_DRM_XE_DISPLAY)