diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-12-14 13:35:10 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-01-10 15:43:47 +0100 |
commit | f662623968e17a5044ba546fd1834ceb40241e48 (patch) | |
tree | 8a6713d72b8036a8791faca546cb1a5455401b27 /fs | |
parent | c0afc799fb9a19a11f651596fe23b4b755593887 (diff) | |
download | barebox-f662623968e17a5044ba546fd1834ceb40241e48.tar.gz |
Rename struct driver_d to driver
The '_d' suffix was originally meant to distinguish barebox struct
names from Linux struct names. struct driver doesn't exist in Linux,
so we can rename it and remove the meaningless suffix.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.barebox.org/20221214123512.189688-4-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs.c | 6 | ||||
-rw-r--r-- | fs/pstore/ram.c | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -726,7 +726,7 @@ int close(int fd) } EXPORT_SYMBOL(close); -static int fs_match(struct device *dev, struct driver_d *drv) +static int fs_match(struct device *dev, struct driver *drv) { return strcmp(dev->name, drv->name) ? -1 : 0; } @@ -734,7 +734,7 @@ static int fs_match(struct device *dev, struct driver_d *drv) static int fs_probe(struct device *dev) { struct fs_device_d *fsdev = dev_to_fs_device(dev); - struct driver_d *drv = dev->driver; + struct driver *drv = dev->driver; struct fs_driver_d *fsdrv = container_of(drv, struct fs_driver_d, drv); int ret; @@ -862,7 +862,7 @@ EXPORT_SYMBOL(register_fs_driver); const char *fs_detect(const char *filename, const char *fsoptions) { enum filetype type; - struct driver_d *drv; + struct driver *drv; struct fs_driver_d *fdrv; bool loop = false; unsigned long long offset = 0; diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 6a57586543..ba4f864b70 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c @@ -676,7 +676,7 @@ static const struct of_device_id ramoops_dt_ids[] = { { }, }; -static struct driver_d ramoops_driver = { +static struct driver ramoops_driver = { .name = "ramoops", .probe = ramoops_probe, .of_compatible = DRV_OF_COMPAT(ramoops_dt_ids), |