Skip to content

Commit b9ec71f

Browse files
andy-shevlag-linaro
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent dd39451 commit b9ec71f

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

drivers/mfd/atmel-smc.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,16 @@
88
* Author: Boris Brezillon <[email protected]>
99
*/
1010

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>
1217
#include <linux/string.h>
1318

19+
#include <linux/mfd/syscon/atmel-smc.h>
20+
1421
/**
1522
* atmel_smc_cs_conf_init - initialize a SMC CS conf
1623
* @conf: the SMC CS conf to initialize

include/linux/mfd/syscon/atmel-smc.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
#ifndef _LINUX_MFD_SYSCON_ATMEL_SMC_H_
1212
#define _LINUX_MFD_SYSCON_ATMEL_SMC_H_
1313

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;
1719

1820
#define ATMEL_SMC_SETUP(cs) (((cs) * 0x10))
1921
#define ATMEL_HSMC_SETUP(layout, cs) \

0 commit comments

Comments
 (0)