[PATCH 2/6] regmap: make internal.h a self-contained header

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

 



Follow up commit will add a new user for "internal.h".
Prepare the header for this.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 drivers/base/regmap/internal.h | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h
index 52df5290a18d..5b19459828fe 100644
--- a/drivers/base/regmap/internal.h
+++ b/drivers/base/regmap/internal.h
@@ -1,5 +1,10 @@
+#ifndef REGMAP_INTERNAL_H_
+#define REGMAP_INTERNAL_H_
 
 #include <linux/list.h>
+#include <driver.h>
+
+struct regmap_bus;
 
 struct regmap {
 	struct device_d *dev;
@@ -15,4 +20,6 @@ struct regmap {
 	unsigned int max_register;
 
 	struct cdev cdev;
-};
\ No newline at end of file
+};
+
+#endif
-- 
2.25.0


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



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

  Powered by Linux