]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/i915/mchbar: include intel_mchbar_regs.h from intel_mchbar.h
authorJani Nikula <jani.nikula@intel.com>
Tue, 7 Apr 2026 19:36:26 +0000 (22:36 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 8 Apr 2026 09:29:59 +0000 (12:29 +0300)
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>
drivers/gpu/drm/i915/display/i9xx_wm.c
drivers/gpu/drm/i915/display/intel_bw.c
drivers/gpu/drm/i915/display/intel_cdclk.c
drivers/gpu/drm/i915/display/intel_display_power.c
drivers/gpu/drm/i915/display/intel_dram.c
drivers/gpu/drm/i915/display/intel_mchbar.c
drivers/gpu/drm/i915/display/intel_mchbar.h

index 3dbfb850fe1d37a63338fa19953b4a7cd6012008..02ac6f9a3d0e582a033e19deb9d374dbd762afb0 100644 (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"
index e6c8fd6302947eb03b5406ca5e045810537ada49..474438fc1ebc40e96ad844a2120baefd41581eef 100644 (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"
 
index 835a332e968618a1f6bdc2d06add9045acdf431b..82955cf16c4cb52cff07ded3c41e178145e735a2 100644 (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"
index 98e5a794fab7f40080dac9b84e50f4fdd88f77c0..4091b7c4914fdac7265a767a8d789e180139bce0 100644 (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"
index 2079c63e3649fe75c10ac1ac66c336c9ccf7cabf..f103f7cba01832df02581cec9e3bfb03d07f6b88 100644 (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"
 
index 16fcfe1e93ec2c7e5d049d47aec71703675b1b16..a0d0a796c6bbf3b96845e5e9c4836692edb48594 100644 (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)
 {
index 002a4454e8edcb3b8ed4d3cd2d0b97ef6754e1b7..51ecd6075bdfb8703140af9a5cb4d0bbcbf6e56b 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/types.h>
 
 #include "i915_reg_defs.h"
+#include "intel_mchbar_regs.h"
 
 struct intel_display;