[PATCH 07/11] mfd: pfuze: disable mfd/pfuze.h dependency on regmap.h
Ahmad Fatoum
a.fatoum at pengutronix.de
Fri Oct 20 00:18:49 PDT 2023
The only thing mfd/pfuze.h requires out of regmap.h is the forward
declaration of struct regmap. Just provide that and fix up the only
user that didn't already include regmap.h although requiring it.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
arch/arm/boards/phytec-som-imx8mq/board.c | 1 +
include/mfd/pfuze.h | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boards/phytec-som-imx8mq/board.c b/arch/arm/boards/phytec-som-imx8mq/board.c
index 5dbfaf13db60..45ed9cf5ad98 100644
--- a/arch/arm/boards/phytec-som-imx8mq/board.c
+++ b/arch/arm/boards/phytec-som-imx8mq/board.c
@@ -11,6 +11,7 @@
#include <linux/sizes.h>
#include <mach/imx/bbu.h>
#include <mfd/pfuze.h>
+#include <linux/regmap.h>
#include <envfs.h>
diff --git a/include/mfd/pfuze.h b/include/mfd/pfuze.h
index 4fb3863a723e..5cb0af939e06 100644
--- a/include/mfd/pfuze.h
+++ b/include/mfd/pfuze.h
@@ -3,7 +3,7 @@
#ifndef __INCLUDE_PFUZE_H
#define __INCLUDE_PFUZE_H
-#include <regmap.h>
+struct regmap;
#ifdef CONFIG_REGULATOR_PFUZE
/*
--
2.39.2
More information about the barebox
mailing list