[PATCH 3/8] regmap: forward declare structs used in header

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

 



Both the device_d and device_node struct are used opaquely in this
header. Forward declare them to avoid compilation errors on different
include order.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 include/regmap.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/regmap.h b/include/regmap.h
index 09b7b57d52f3..049ac0210e43 100644
--- a/include/regmap.h
+++ b/include/regmap.h
@@ -37,6 +37,9 @@ struct regmap_bus {
 	regmap_hw_reg_read reg_read;
 };
 
+struct device_d;
+struct device_node;
+
 struct regmap *regmap_init(struct device_d *dev,
 			     const struct regmap_bus *bus,
 			     void *bus_context,
-- 
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