diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-12-14 13:35:09 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-01-10 15:43:47 +0100 |
commit | c0afc799fb9a19a11f651596fe23b4b755593887 (patch) | |
tree | 9c27f1533193d31757744b22b2af9186d23e67ed /include/regmap.h | |
parent | e70b9d7a74698f1374244b2251216428db920aed (diff) | |
download | barebox-c0afc799fb9a19a11f651596fe23b4b755593887.tar.gz |
Rename struct device_d to device
The '_d' suffix was originally introduced in case we want to import
Linux struct device as a separate struct into barebox. Over time it
became clear that this won't happen, instead barebox struct device_d
is basically the same as Linux struct device. Rename the struct name
accordingly to make porting Linux code easier.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.barebox.org/20221214123512.189688-3-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/regmap.h')
-rw-r--r-- | include/regmap.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/regmap.h b/include/regmap.h index 5bedb30d8a..44dd8f38c8 100644 --- a/include/regmap.h +++ b/include/regmap.h @@ -51,10 +51,10 @@ struct regmap_bus { enum regmap_endian val_format_endian_default; }; -struct device_d; +struct device; struct device_node; -struct regmap *regmap_init(struct device_d *dev, +struct regmap *regmap_init(struct device *dev, const struct regmap_bus *bus, void *bus_context, const struct regmap_config *config); @@ -72,7 +72,7 @@ struct clk; * The return value will be an ERR_PTR() on error or a valid pointer to * a struct regmap. */ -struct regmap *regmap_init_mmio_clk(struct device_d *dev, const char *clk_id, +struct regmap *regmap_init_mmio_clk(struct device *dev, const char *clk_id, void __iomem *regs, const struct regmap_config *config); @@ -111,8 +111,8 @@ void regmap_mmio_detach_clk(struct regmap *map); void regmap_exit(struct regmap *map); -struct regmap *dev_get_regmap(struct device_d *dev, const char *name); -struct device_d *regmap_get_device(struct regmap *map); +struct regmap *dev_get_regmap(struct device *dev, const char *name); +struct device *regmap_get_device(struct regmap *map); int regmap_register_cdev(struct regmap *map, const char *name); |