summaryrefslogtreecommitdiff
path: root/fs/yaffs2-new/yaffs_direct.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/yaffs2-new/yaffs_direct.h')
-rw-r--r--fs/yaffs2-new/yaffs_direct.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/yaffs2-new/yaffs_direct.h b/fs/yaffs2-new/yaffs_direct.h
new file mode 100644
index 00000000000..28008a608d4
--- /dev/null
+++ b/fs/yaffs2-new/yaffs_direct.h
@@ -0,0 +1,8 @@
+
+struct yaffs_direct_context {
+ struct yaffs_dev *dev;
+ u8 *spare_buffer;
+};
+
+#define yaffs_dev_to_lc(dev) ((struct yaffs_direct_context *)((dev)->os_context))
+#define yaffs_dev_to_mtd(dev) ((struct mtd_info *)((dev)->driver_context))