drm/i915/mchbar: include intel_mchbar_regs.h from intel_mchbar.h

As an exception to the rule of not including unnecessary headers from
headers, include intel_mchbar_regs.h from intel_mchbar.h. In order to
use the interfaces in intel_mchbar.h you will always have to include the
registers anyway, so the includes are in pairs everywhere. There is zero
asymmetry. Simplify.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/e44dc2daf3fc39d02c3f598c323caa3c08a54304.1775590536.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
Jani Nikula 2026-04-07 22:36:26 +03:00
parent 102d44b3a8
commit d54377e487
7 changed files with 1 additions and 6 deletions

View File

@ -20,7 +20,6 @@
#include "intel_dram.h"
#include "intel_fb.h"
#include "intel_mchbar.h"
#include "intel_mchbar_regs.h"
#include "intel_wm.h"
#include "skl_watermark.h"
#include "vlv_sideband.h"

View File

@ -16,7 +16,6 @@
#include "intel_display_utils.h"
#include "intel_dram.h"
#include "intel_mchbar.h"
#include "intel_mchbar_regs.h"
#include "intel_parent.h"
#include "skl_watermark.h"

View File

@ -42,7 +42,6 @@
#include "intel_display_wa.h"
#include "intel_dram.h"
#include "intel_mchbar.h"
#include "intel_mchbar_regs.h"
#include "intel_parent.h"
#include "intel_pci_config.h"
#include "intel_plane.h"

View File

@ -25,7 +25,6 @@
#include "intel_dmc.h"
#include "intel_dram.h"
#include "intel_mchbar.h"
#include "intel_mchbar_regs.h"
#include "intel_parent.h"
#include "intel_pch_refclk.h"
#include "intel_pmdemand.h"

View File

@ -15,7 +15,6 @@
#include "intel_display_regs.h"
#include "intel_dram.h"
#include "intel_mchbar.h"
#include "intel_mchbar_regs.h"
#include "intel_parent.h"
#include "vlv_sideband.h"

View File

@ -10,7 +10,6 @@
#include "intel_de.h"
#include "intel_display_core.h"
#include "intel_mchbar.h"
#include "intel_mchbar_regs.h"
static bool has_mchbar_mirror(struct intel_display *display)
{

View File

@ -9,6 +9,7 @@
#include <linux/types.h>
#include "i915_reg_defs.h"
#include "intel_mchbar_regs.h"
struct intel_display;