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 /drivers/amba | |
parent | e70b9d7a74698f1374244b2251216428db920aed (diff) | |
download | barebox-c0afc799fb9a19a11f651596fe23b4b755593887.tar.gz barebox-c0afc799fb9a19a11f651596fe23b4b755593887.tar.xz |
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 'drivers/amba')
-rw-r--r-- | drivers/amba/bus.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c index 571aa0e8bf..bef6cc4ba2 100644 --- a/drivers/amba/bus.c +++ b/drivers/amba/bus.c @@ -28,7 +28,7 @@ amba_lookup(const struct amba_id *table, struct amba_device *dev) return ret ? table : NULL; } -static int amba_match(struct device_d *dev, struct driver_d *drv) +static int amba_match(struct device *dev, struct driver_d *drv) { struct amba_device *pcdev = to_amba_device(dev); @@ -55,7 +55,7 @@ static int amba_get_enable_pclk(struct amba_device *pcdev) return ret; } -static int amba_probe(struct device_d *dev) +static int amba_probe(struct device *dev) { struct amba_device *pcdev = to_amba_device(dev); struct amba_driver *pcdrv = to_amba_driver(dev->driver); @@ -64,7 +64,7 @@ static int amba_probe(struct device_d *dev) return pcdrv->probe(pcdev, id); } -static void amba_remove(struct device_d *dev) +static void amba_remove(struct device *dev) { struct amba_device *pcdev = to_amba_device(dev); struct amba_driver *drv = to_amba_driver(dev->driver); @@ -163,7 +163,7 @@ int amba_device_add(struct amba_device *dev) } struct amba_device * -amba_aphb_device_add(struct device_d *parent, const char *name, int id, +amba_aphb_device_add(struct device *parent, const char *name, int id, resource_size_t base, size_t size, void *pdata, unsigned int periphid) { |