summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-09-28 18:16:38 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-09-29 10:26:01 +0200
commit34df2aff84af0db670c7de4656c2f8c36f9611dd (patch)
tree93e41efd33ceb40d09b8012bce8175ec7dd505ad /include
parent8974923296b8938741c8b1161771547b8d11ce56 (diff)
downloadbarebox-34df2aff84af0db670c7de4656c2f8c36f9611dd.tar.gz
barebox-34df2aff84af0db670c7de4656c2f8c36f9611dd.tar.xz
include: regulator.h: forward declare struct device_d
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> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/regulator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/regulator.h b/include/regulator.h
index a9cb6dedca..76325fd960 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;