mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] include: regulator.h: forward declare struct device_d
@ 2020-09-28 16:16 Ahmad Fatoum
  2020-09-29  8:26 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2020-09-28 16:16 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

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


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] include: regulator.h: forward declare struct device_d
  2020-09-28 16:16 [PATCH] include: regulator.h: forward declare struct device_d Ahmad Fatoum
@ 2020-09-29  8:26 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2020-09-29  8:26 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

On Mon, Sep 28, 2020 at 06:16:38PM +0200, Ahmad Fatoum wrote:
> 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@pengutronix.de>
> ---
>  include/regulator.h | 2 ++
>  1 file changed, 2 insertions(+)

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-29  8:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-28 16:16 [PATCH] include: regulator.h: forward declare struct device_d Ahmad Fatoum
2020-09-29  8:26 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox