summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-02-19 16:39:53 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-02-25 14:03:56 +0100
commit76c7f90a54a750f0779c81d13cd94e6f674848ad (patch)
treedf6953d29a1adf899cbb8812b843879a2965c9e9 /include
parent660a2864cbdbf3cb368b04925b9caf1e6ca1ac0a (diff)
downloadbarebox-76c7f90a54a750f0779c81d13cd94e6f674848ad.tar.gz
barebox-76c7f90a54a750f0779c81d13cd94e6f674848ad.tar.xz
fs: get fs driver using container_of
This reduces the usage of dev->type_data. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h
index 656160dd53..5ef5f553d3 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -74,6 +74,8 @@ struct fs_driver_d {
unsigned long flags;
};
+#define dev_to_fs_driver(d) container_of(d->driver, struct fs_driver_d, drv)
+
struct mtab_entry {
char *path;
struct device_d *dev;