[PATCH] include: regulator.h: forward declare struct device_d

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Sep 28 12:16:38 EDT 2020


We so far depended on include order for struct device_d to be declared
before <regulator.h> inclusion. Fix this.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 include/regulator.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/regulator.h b/include/regulator.h
index a9cb6dedca5e..76325fd96056 100644
--- a/include/regulator.h
+++ b/include/regulator.h
@@ -2,6 +2,8 @@
 #ifndef __REGULATOR_H
 #define __REGULATOR_H
 
+struct device_d;
+
 /* struct regulator is an opaque object for consumers */
 struct regulator;
 
-- 
2.28.0




More information about the barebox mailing list