diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-10-08 13:48:12 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-10-08 16:06:21 +0200 |
commit | bfef6cd5f2ff1720543839dea9bcc7ec340ba8f5 (patch) | |
tree | ce8b52342f60a774deb73eb7c1c5fded11f64c2c /include | |
parent | 86ef8cb8fb7f98e859d17a59306fc5e346604a92 (diff) | |
download | barebox-bfef6cd5f2ff1720543839dea9bcc7ec340ba8f5.tar.gz barebox-bfef6cd5f2ff1720543839dea9bcc7ec340ba8f5.tar.xz |
fs: store pointer to fsdev instead of dev in struct filep
The struct device_d * in struct filep is never of interest, instead
it is always converted to a struct fs_device_d *, so simplify the code
by storing the struct fs_device_d * directly.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/fs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/fs.h b/include/fs.h index b2541a4ee5..c3ce81ae98 100644 --- a/include/fs.h +++ b/include/fs.h @@ -23,7 +23,7 @@ typedef struct dir { } DIR; typedef struct filep { - struct device_d *dev; /* The device this FILE belongs to */ + struct fs_device_d *fsdev; /* The device this FILE belongs to */ loff_t pos; /* current position in stream */ #define FILE_SIZE_STREAM ((loff_t) -1) loff_t size; /* The size of this inode */ @@ -82,7 +82,6 @@ struct fs_driver_d { unsigned long flags; }; -#define dev_to_fs_driver(d) container_of(d->driver, struct fs_driver_d, drv) #define dev_to_fs_device(d) container_of(d, struct fs_device_d, dev) extern struct list_head fs_device_list; |