summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-12-14 13:35:12 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-01-10 15:43:47 +0100
commit63b2f9b4381e24c7d9d17d5773f9a5ce029ef30a (patch)
tree94ddf9da50638964ca137cf5cd9d894ad18b7e08 /fs
parent099c614f1c3c6f814fcf5c440932dbe3eab8ba00 (diff)
downloadbarebox-63b2f9b4381e24c7d9d17d5773f9a5ce029ef30a.tar.gz
Rename struct fs_driver_d to fs_driver
Remove the meaningless '_d' 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-6-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/bpkfs.c2
-rw-r--r--fs/cramfs/cramfs.c2
-rw-r--r--fs/devfs.c2
-rw-r--r--fs/efi.c2
-rw-r--r--fs/efivarfs.c2
-rw-r--r--fs/ext4/ext_barebox.c2
-rw-r--r--fs/fat/fat.c2
-rw-r--r--fs/fs.c32
-rw-r--r--fs/jffs2/fs.c2
-rw-r--r--fs/nfs.c2
-rw-r--r--fs/omap4_usbbootfs.c2
-rw-r--r--fs/pstore/fs.c2
-rw-r--r--fs/ramfs.c2
-rw-r--r--fs/ratpfs.c2
-rw-r--r--fs/smhfs.c2
-rw-r--r--fs/squashfs/squashfs.c2
-rw-r--r--fs/tftp.c2
-rw-r--r--fs/ubifs/ubifs.c2
-rw-r--r--fs/ubootvarfs.c2
-rw-r--r--fs/uimagefs.c2
20 files changed, 35 insertions, 35 deletions
diff --git a/fs/bpkfs.c b/fs/bpkfs.c
index 6e22a5ebec..ea2c279585 100644
--- a/fs/bpkfs.c
+++ b/fs/bpkfs.c
@@ -491,7 +491,7 @@ err:
return ret;
}
-static struct fs_driver_d bpkfs_driver = {
+static struct fs_driver bpkfs_driver = {
.open = bpkfs_open,
.close = bpkfs_close,
.read = bpkfs_read,
diff --git a/fs/cramfs/cramfs.c b/fs/cramfs/cramfs.c
index 4322bbffd4..4676af8a55 100644
--- a/fs/cramfs/cramfs.c
+++ b/fs/cramfs/cramfs.c
@@ -496,7 +496,7 @@ static void cramfs_remove(struct device *dev)
free(priv);
}
-static struct fs_driver_d cramfs_driver = {
+static struct fs_driver cramfs_driver = {
.read = cramfs_read,
.drv = {
.probe = cramfs_probe,
diff --git a/fs/devfs.c b/fs/devfs.c
index eaee51c375..c30ae4f384 100644
--- a/fs/devfs.c
+++ b/fs/devfs.c
@@ -314,7 +314,7 @@ static void devfs_delete(struct device *dev)
{
}
-static struct fs_driver_d devfs_driver = {
+static struct fs_driver devfs_driver = {
.read = devfs_read,
.write = devfs_write,
.lseek = devfs_lseek,
diff --git a/fs/efi.c b/fs/efi.c
index 12275e4a85..0789f6ecee 100644
--- a/fs/efi.c
+++ b/fs/efi.c
@@ -479,7 +479,7 @@ static void efifs_remove(struct device *dev)
free(dev->priv);
}
-static struct fs_driver_d efifs_driver = {
+static struct fs_driver efifs_driver = {
.create = efifs_create,
.unlink = efifs_unlink,
.open = efifs_open,
diff --git a/fs/efivarfs.c b/fs/efivarfs.c
index bba2c33340..5d805aefbf 100644
--- a/fs/efivarfs.c
+++ b/fs/efivarfs.c
@@ -347,7 +347,7 @@ static void efivarfs_remove(struct device *dev)
free(priv);
}
-static struct fs_driver_d efivarfs_driver = {
+static struct fs_driver efivarfs_driver = {
.create = efivars_create,
.unlink = efivars_unlink,
.open = efivarfs_open,
diff --git a/fs/ext4/ext_barebox.c b/fs/ext4/ext_barebox.c
index e0b5951e86..93dc9b4b14 100644
--- a/fs/ext4/ext_barebox.c
+++ b/fs/ext4/ext_barebox.c
@@ -298,7 +298,7 @@ static void ext_remove(struct device *dev)
free(fs);
}
-static struct fs_driver_d ext_driver = {
+static struct fs_driver ext_driver = {
.read = ext_read,
.type = filetype_ext,
.flags = 0,
diff --git a/fs/fat/fat.c b/fs/fat/fat.c
index 79c7d26ab7..f3c7f9b863 100644
--- a/fs/fat/fat.c
+++ b/fs/fat/fat.c
@@ -373,7 +373,7 @@ static void fat_remove(struct device *dev)
free(dev->priv);
}
-static struct fs_driver_d fat_driver = {
+static struct fs_driver fat_driver = {
.open = fat_open,
.close = fat_close,
.read = fat_read,
diff --git a/fs/fs.c b/fs/fs.c
index 0e1e9b0dd0..752688b574 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -179,7 +179,7 @@ static FILE *files;
static struct dentry *d_root;
static struct vfsmount *mnt_root;
-static struct fs_driver_d *ramfs_driver;
+static struct fs_driver *ramfs_driver;
static int init_fs(void)
{
@@ -313,7 +313,7 @@ EXPORT_SYMBOL(creat);
static int fsdev_truncate(struct device *dev, FILE *f, loff_t length)
{
- struct fs_driver_d *fsdrv = f->fsdev->driver;
+ struct fs_driver *fsdrv = f->fsdev->driver;
return fsdrv->truncate ? fsdrv->truncate(dev, f, length) : -EROFS;
}
@@ -343,7 +343,7 @@ int ftruncate(int fd, loff_t length)
int ioctl(int fd, int request, void *buf)
{
- struct fs_driver_d *fsdrv;
+ struct fs_driver *fsdrv;
FILE *f = fd_to_file(fd);
int ret;
@@ -363,7 +363,7 @@ int ioctl(int fd, int request, void *buf)
static ssize_t __read(FILE *f, void *buf, size_t count)
{
- struct fs_driver_d *fsdrv;
+ struct fs_driver *fsdrv;
int ret;
if ((f->flags & O_ACCMODE) == O_WRONLY) {
@@ -425,7 +425,7 @@ EXPORT_SYMBOL(read);
static ssize_t __write(FILE *f, const void *buf, size_t count)
{
- struct fs_driver_d *fsdrv;
+ struct fs_driver *fsdrv;
int ret;
fsdrv = f->fsdev->driver;
@@ -494,7 +494,7 @@ EXPORT_SYMBOL(write);
int flush(int fd)
{
- struct fs_driver_d *fsdrv;
+ struct fs_driver *fsdrv;
FILE *f = fd_to_file(fd);
int ret;
@@ -515,7 +515,7 @@ int flush(int fd)
loff_t lseek(int fd, loff_t offset, int whence)
{
- struct fs_driver_d *fsdrv;
+ struct fs_driver *fsdrv;
FILE *f = fd_to_file(fd);
loff_t pos;
int ret;
@@ -569,7 +569,7 @@ EXPORT_SYMBOL(lseek);
int erase(int fd, loff_t count, loff_t offset)
{
- struct fs_driver_d *fsdrv;
+ struct fs_driver *fsdrv;
FILE *f = fd_to_file(fd);
int ret;
@@ -601,7 +601,7 @@ EXPORT_SYMBOL(erase);
int protect(int fd, size_t count, loff_t offset, int prot)
{
- struct fs_driver_d *fsdrv;
+ struct fs_driver *fsdrv;
FILE *f = fd_to_file(fd);
int ret;
@@ -631,7 +631,7 @@ EXPORT_SYMBOL(protect);
int discard_range(int fd, loff_t count, loff_t offset)
{
- struct fs_driver_d *fsdrv;
+ struct fs_driver *fsdrv;
FILE *f = fd_to_file(fd);
int ret;
@@ -675,7 +675,7 @@ int protect_file(const char *file, int prot)
void *memmap(int fd, int flags)
{
- struct fs_driver_d *fsdrv;
+ struct fs_driver *fsdrv;
FILE *f = fd_to_file(fd);
void *retp = MAP_FAILED;
int ret;
@@ -702,7 +702,7 @@ EXPORT_SYMBOL(memmap);
int close(int fd)
{
- struct fs_driver_d *fsdrv;
+ struct fs_driver *fsdrv;
FILE *f = fd_to_file(fd);
int ret = 0;
@@ -735,7 +735,7 @@ static int fs_probe(struct device *dev)
{
struct fs_device *fsdev = dev_to_fs_device(dev);
struct driver *drv = dev->driver;
- struct fs_driver_d *fsdrv = container_of(drv, struct fs_driver_d, drv);
+ struct fs_driver *fsdrv = container_of(drv, struct fs_driver, drv);
int ret;
ret = dev->driver->probe(dev);
@@ -847,7 +847,7 @@ static int fs_bus_init(void)
}
pure_initcall(fs_bus_init);
-int register_fs_driver(struct fs_driver_d *fsdrv)
+int register_fs_driver(struct fs_driver *fsdrv)
{
fsdrv->drv.bus = &fs_bus;
register_driver(&fsdrv->drv);
@@ -863,7 +863,7 @@ const char *fs_detect(const char *filename, const char *fsoptions)
{
enum filetype type;
struct driver *drv;
- struct fs_driver_d *fdrv;
+ struct fs_driver *fdrv;
bool loop = false;
unsigned long long offset = 0;
@@ -2491,7 +2491,7 @@ EXPORT_SYMBOL(rmdir);
int open(const char *pathname, int flags, ...)
{
struct fs_device *fsdev;
- struct fs_driver_d *fsdrv;
+ struct fs_driver *fsdrv;
struct super_block *sb;
FILE *f;
int error = 0;
diff --git a/fs/jffs2/fs.c b/fs/jffs2/fs.c
index 8b526f7b7f..6f2cbff6c9 100644
--- a/fs/jffs2/fs.c
+++ b/fs/jffs2/fs.c
@@ -466,7 +466,7 @@ static void jffs2_remove(struct device *dev)
}
-static struct fs_driver_d jffs2_driver = {
+static struct fs_driver jffs2_driver = {
.open = jffs2_open,
.close = jffs2_close,
.read = jffs2_read,
diff --git a/fs/nfs.c b/fs/nfs.c
index 1b38923ce0..446d0f7946 100644
--- a/fs/nfs.c
+++ b/fs/nfs.c
@@ -1530,7 +1530,7 @@ static void nfs_remove(struct device *dev)
free(npriv);
}
-static struct fs_driver_d nfs_driver = {
+static struct fs_driver nfs_driver = {
.open = nfs_open,
.close = nfs_close,
.read = nfs_read,
diff --git a/fs/omap4_usbbootfs.c b/fs/omap4_usbbootfs.c
index 1ccfe14182..985d968cc5 100644
--- a/fs/omap4_usbbootfs.c
+++ b/fs/omap4_usbbootfs.c
@@ -149,7 +149,7 @@ static void omap4_usbbootfs_remove(struct device *dev)
{
}
-static struct fs_driver_d omap4_usbbootfs_driver = {
+static struct fs_driver omap4_usbbootfs_driver = {
.open = omap4_usbbootfs_open,
.close = omap4_usbbootfs_close,
.read = omap4_usbbootfs_read,
diff --git a/fs/pstore/fs.c b/fs/pstore/fs.c
index 24b5306d15..777e2448cc 100644
--- a/fs/pstore/fs.c
+++ b/fs/pstore/fs.c
@@ -254,7 +254,7 @@ static int pstore_probe(struct device *dev)
return 0;
}
-static struct fs_driver_d pstore_driver = {
+static struct fs_driver pstore_driver = {
.open = pstore_open,
.close = pstore_close,
.read = pstore_read,
diff --git a/fs/ramfs.c b/fs/ramfs.c
index 9e1f22c152..117e69b70c 100644
--- a/fs/ramfs.c
+++ b/fs/ramfs.c
@@ -450,7 +450,7 @@ static void ramfs_remove(struct device *dev)
{
}
-static struct fs_driver_d ramfs_driver = {
+static struct fs_driver ramfs_driver = {
.read = ramfs_read,
.write = ramfs_write,
.memmap = ramfs_memmap,
diff --git a/fs/ratpfs.c b/fs/ratpfs.c
index 8432198ebd..9e85fc596e 100644
--- a/fs/ratpfs.c
+++ b/fs/ratpfs.c
@@ -438,7 +438,7 @@ static void ratpfs_remove(struct device __always_unused *dev)
barebox_ratp_fs_mount(NULL);
}
-static struct fs_driver_d ratpfs_driver = {
+static struct fs_driver ratpfs_driver = {
.open = ratpfs_open,
.close = ratpfs_close,
.read = ratpfs_read,
diff --git a/fs/smhfs.c b/fs/smhfs.c
index 6431b894f6..5165bf9394 100644
--- a/fs/smhfs.c
+++ b/fs/smhfs.c
@@ -148,7 +148,7 @@ static void smhfs_remove(struct device __always_unused *dev)
{
}
-static struct fs_driver_d smhfs_driver = {
+static struct fs_driver smhfs_driver = {
.open = smhfs_open,
.close = smhfs_close,
.read = smhfs_read,
diff --git a/fs/squashfs/squashfs.c b/fs/squashfs/squashfs.c
index 17663d8976..f2e5769a19 100644
--- a/fs/squashfs/squashfs.c
+++ b/fs/squashfs/squashfs.c
@@ -251,7 +251,7 @@ struct squashfs_dir {
char root_d_name[256];
};
-static struct fs_driver_d squashfs_driver = {
+static struct fs_driver squashfs_driver = {
.open = squashfs_open,
.close = squashfs_close,
.read = squashfs_read,
diff --git a/fs/tftp.c b/fs/tftp.c
index 6509d97d7e..0b0b86a1a0 100644
--- a/fs/tftp.c
+++ b/fs/tftp.c
@@ -1051,7 +1051,7 @@ static void tftp_remove(struct device *dev)
free(priv);
}
-static struct fs_driver_d tftp_driver = {
+static struct fs_driver tftp_driver = {
.open = tftp_open,
.close = tftp_close,
.read = tftp_read,
diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c
index 8a190309aa..ad288f4daa 100644
--- a/fs/ubifs/ubifs.c
+++ b/fs/ubifs/ubifs.c
@@ -503,7 +503,7 @@ static void ubifs_remove(struct device *dev)
free(priv);
}
-static struct fs_driver_d ubifs_driver = {
+static struct fs_driver ubifs_driver = {
.open = ubifs_open,
.close = ubifs_close,
.read = ubifs_read,
diff --git a/fs/ubootvarfs.c b/fs/ubootvarfs.c
index 2559cfd111..32cf574e57 100644
--- a/fs/ubootvarfs.c
+++ b/fs/ubootvarfs.c
@@ -481,7 +481,7 @@ static void ubootvarfs_remove(struct device *dev)
free(data);
}
-static struct fs_driver_d ubootvarfs_driver = {
+static struct fs_driver ubootvarfs_driver = {
.truncate = ubootvarfs_truncate,
.read = ubootvarfs_read,
.write = ubootvarfs_write,
diff --git a/fs/uimagefs.c b/fs/uimagefs.c
index 4e98d82f38..9cae2091da 100644
--- a/fs/uimagefs.c
+++ b/fs/uimagefs.c
@@ -520,7 +520,7 @@ err:
return ret;
}
-static struct fs_driver_d uimagefs_driver = {
+static struct fs_driver uimagefs_driver = {
.open = uimagefs_open,
.close = uimagefs_close,
.read = uimagefs_read,