diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-19 16:43:39 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-25 14:03:56 +0100 |
commit | 3a92711511144763e42a9605479160583409861c (patch) | |
tree | 28a17fc4dfeb6ed85450958cc7f38576eb1f4e39 /include/fs.h | |
parent | 76c7f90a54a750f0779c81d13cd94e6f674848ad (diff) | |
download | barebox-3a92711511144763e42a9605479160583409861c.tar.gz barebox-3a92711511144763e42a9605479160583409861c.tar.xz |
fs: get fs device using container_of
This reduces the usage of dev->type_data.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/fs.h')
-rw-r--r-- | include/fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h index 5ef5f553d3..e5364f9e79 100644 --- a/include/fs.h +++ b/include/fs.h @@ -75,6 +75,7 @@ struct fs_driver_d { }; #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) struct mtab_entry { char *path; |