From debe2245679121d5ffb13e428f22553d35212287 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Thu, 6 Feb 2020 12:23:29 +0100 Subject: 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 Signed-off-by: Sascha Hauer --- include/regmap.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/regmap.h') 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, -- cgit v1.2.3