Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: syscon: atmel-smc: Don't use "proxy" headers

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>

authored by

Andy Shevchenko and committed by
Lee Jones
b9ec71fb dd394515

+13 -4
+8 -1
drivers/mfd/atmel-smc.c
··· 8 8 * Author: Boris Brezillon <boris.brezillon@free-electrons.com> 9 9 */ 10 10 11 - #include <linux/mfd/syscon/atmel-smc.h> 11 + #include <linux/bits.h> 12 + #include <linux/err.h> 13 + #include <linux/export.h> 14 + #include <linux/mod_devicetable.h> 15 + #include <linux/of.h> 16 + #include <linux/regmap.h> 12 17 #include <linux/string.h> 18 + 19 + #include <linux/mfd/syscon/atmel-smc.h> 13 20 14 21 /** 15 22 * atmel_smc_cs_conf_init - initialize a SMC CS conf
+5 -3
include/linux/mfd/syscon/atmel-smc.h
··· 11 11 #ifndef _LINUX_MFD_SYSCON_ATMEL_SMC_H_ 12 12 #define _LINUX_MFD_SYSCON_ATMEL_SMC_H_ 13 13 14 - #include <linux/kernel.h> 15 - #include <linux/of.h> 16 - #include <linux/regmap.h> 14 + #include <linux/bits.h> 15 + #include <linux/types.h> 16 + 17 + struct device_node; 18 + struct regmap; 17 19 18 20 #define ATMEL_SMC_SETUP(cs) (((cs) * 0x10)) 19 21 #define ATMEL_HSMC_SETUP(layout, cs) \