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

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

 



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@xxxxxxxxxxxxxx>
---
 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


_______________________________________________
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