summaryrefslogtreecommitdiffstats
path: root/include/regmap.h
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-02-06 12:23:29 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-02-10 09:16:15 +0100
commitdebe2245679121d5ffb13e428f22553d35212287 (patch)
tree34178bfd6de83b1796529690b62dc5ed602321b2 /include/regmap.h
parent35f75fdfea5a6f4c83f033f8ad899fe4a14029bf (diff)
downloadbarebox-debe2245679121d5ffb13e428f22553d35212287.tar.gz
barebox-debe2245679121d5ffb13e428f22553d35212287.tar.xz
regmap: forward declare structs used in header
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@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/regmap.h')
-rw-r--r--include/regmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/regmap.h b/include/regmap.h
index 09b7b57d52..049ac0210e 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,