[PATCH 08/11] mfd: atmel-smc: remove dependency of mfd/syscon/atmel-smc.h on regmap.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A forward declaration of struct regmap is all that the header requires
and all users already include regmap.h, so drop the include from the
header.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 include/linux/mfd/syscon/atmel-smc.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/mfd/syscon/atmel-smc.h b/include/linux/mfd/syscon/atmel-smc.h
index 881edefe4e9c..16d09ea497aa 100644
--- a/include/linux/mfd/syscon/atmel-smc.h
+++ b/include/linux/mfd/syscon/atmel-smc.h
@@ -13,7 +13,6 @@
 
 #include <linux/kernel.h>
 #include <of.h>
-#include <regmap.h>
 
 #define ATMEL_SMC_SETUP(cs)			(((cs) * 0x10))
 #define ATMEL_HSMC_SETUP(layout, cs)		\
@@ -93,6 +92,8 @@ struct atmel_smc_cs_conf {
 	u32 mode;
 };
 
+struct regmap;
+
 void atmel_smc_cs_conf_init(struct atmel_smc_cs_conf *conf);
 int atmel_smc_cs_conf_set_timing(struct atmel_smc_cs_conf *conf,
 				 unsigned int shift,
-- 
2.39.2





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux