]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mfd: syscon: atmel-smc: Don't use "proxy" headers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 27 Jun 2025 16:43:58 +0000 (19:43 +0300)
committerLee Jones <lee@kernel.org>
Thu, 24 Jul 2025 10:27:15 +0000 (11:27 +0100)
Update header inclusions to follow IWYU (Include What You Use)
principle.

Note that kernel.h is discouraged to be included as it's written
at the top of that file.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250627164414.1043434-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/atmel-smc.c
include/linux/mfd/syscon/atmel-smc.h

index 4628ca14e76682b81c94c609e6bb77cd0423ac58..0a5b42c83f17d75b11bc16beeda6abc6c9e06b05 100644 (file)
@@ -8,9 +8,16 @@
  * Author: Boris Brezillon <boris.brezillon@free-electrons.com>
  */
 
-#include <linux/mfd/syscon/atmel-smc.h>
+#include <linux/bits.h>
+#include <linux/err.h>
+#include <linux/export.h>
+#include <linux/mod_devicetable.h>
+#include <linux/of.h>
+#include <linux/regmap.h>
 #include <linux/string.h>
 
+#include <linux/mfd/syscon/atmel-smc.h>
+
 /**
  * atmel_smc_cs_conf_init - initialize a SMC CS conf
  * @conf: the SMC CS conf to initialize
index e9e24f4c457898f5ba3b9b2be512293ed32deae9..9b9119c742a24e96e45da4071203e51e706fcb0b 100644 (file)
 #ifndef _LINUX_MFD_SYSCON_ATMEL_SMC_H_
 #define _LINUX_MFD_SYSCON_ATMEL_SMC_H_
 
-#include <linux/kernel.h>
-#include <linux/of.h>
-#include <linux/regmap.h>
+#include <linux/bits.h>
+#include <linux/types.h>
+
+struct device_node;
+struct regmap;
 
 #define ATMEL_SMC_SETUP(cs)                    (((cs) * 0x10))
 #define ATMEL_HSMC_SETUP(layout, cs)           \