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 /fs/nfs.c | |
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 'fs/nfs.c')
-rw-r--r-- | fs/nfs.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -1059,7 +1059,7 @@ static void nfs_handler(void *ctx, char *p, unsigned len) list_add_tail(&packet->list, &npriv->packets); } -static int nfs_truncate(struct device_d *dev, FILE *f, loff_t size) +static int nfs_truncate(struct device *dev, FILE *f, loff_t size) { return -ENOSYS; } @@ -1150,7 +1150,7 @@ static const char *nfs_get_link(struct dentry *dentry, struct inode *inode) return inode->i_link; } -static int nfs_open(struct device_d *dev, FILE *file, const char *filename) +static int nfs_open(struct device *dev, FILE *file, const char *filename) { struct inode *inode = file->f_inode; struct nfs_inode *ninode = nfsi(inode); @@ -1172,7 +1172,7 @@ static int nfs_open(struct device_d *dev, FILE *file, const char *filename) return 0; } -static int nfs_close(struct device_d *dev, FILE *file) +static int nfs_close(struct device *dev, FILE *file) { struct file_priv *priv = file->priv; @@ -1181,13 +1181,13 @@ static int nfs_close(struct device_d *dev, FILE *file) return 0; } -static int nfs_write(struct device_d *_dev, FILE *file, const void *inbuf, - size_t insize) +static int nfs_write(struct device *_dev, FILE *file, const void *inbuf, + size_t insize) { return -ENOSYS; } -static int nfs_read(struct device_d *dev, FILE *file, void *buf, size_t insize) +static int nfs_read(struct device *dev, FILE *file, void *buf, size_t insize) { struct file_priv *priv = file->priv; @@ -1203,7 +1203,7 @@ static int nfs_read(struct device_d *dev, FILE *file, void *buf, size_t insize) return kfifo_get(priv->fifo, buf, insize); } -static int nfs_lseek(struct device_d *dev, FILE *file, loff_t pos) +static int nfs_lseek(struct device *dev, FILE *file, loff_t pos) { struct file_priv *priv = file->priv; @@ -1419,7 +1419,7 @@ static void nfs_set_rootarg(struct nfs_priv *npriv, struct fs_device_d *fsdev) free(str); } -static int nfs_probe(struct device_d *dev) +static int nfs_probe(struct device *dev) { struct fs_device_d *fsdev = dev_to_fs_device(dev); struct nfs_priv *npriv = xzalloc(sizeof(struct nfs_priv)); @@ -1519,7 +1519,7 @@ err: return ret; } -static void nfs_remove(struct device_d *dev) +static void nfs_remove(struct device *dev) { struct nfs_priv *npriv = dev->priv; |