aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/mtd/mtdsplit.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-09-21 17:55:54 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-09-21 17:55:54 +0000
commit4f40e9f56159a005dc3a610f3defcb4d4d3167cc (patch)
tree9e28b05bbf6ee2b3ef18a811f09db7380b3918a3 /target/linux/generic/files/drivers/mtd/mtdsplit.h
parent90b4f720be8b33dba4800f87ce22e6152011ce0e (diff)
downloadupstream-4f40e9f56159a005dc3a610f3defcb4d4d3167cc.tar.gz
upstream-4f40e9f56159a005dc3a610f3defcb4d4d3167cc.tar.bz2
upstream-4f40e9f56159a005dc3a610f3defcb4d4d3167cc.zip
kernel/3.10: add more helpers to the mtdsplit code
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38111 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/drivers/mtd/mtdsplit.h')
-rw-r--r--target/linux/generic/files/drivers/mtd/mtdsplit.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit.h b/target/linux/generic/files/drivers/mtd/mtdsplit.h
index 8ba6c8b200..48cb44c090 100644
--- a/target/linux/generic/files/drivers/mtd/mtdsplit.h
+++ b/target/linux/generic/files/drivers/mtd/mtdsplit.h
@@ -19,6 +19,14 @@
int mtd_get_squashfs_len(struct mtd_info *master,
size_t offset,
size_t *squashfs_len);
+
+int mtd_check_rootfs_magic(struct mtd_info *mtd, size_t offset);
+
+int mtd_find_rootfs_from(struct mtd_info *mtd,
+ size_t from,
+ size_t limit,
+ size_t *ret_offset);
+
#else
static inline int mtd_get_squashfs_len(struct mtd_info *master,
size_t offset,
@@ -26,6 +34,19 @@ static inline int mtd_get_squashfs_len(struct mtd_info *master,
{
return -ENODEV;
}
-#endif
+
+static inline int mtd_check_rootfs_magic(struct mtd_info *mtd, size_t offset)
+{
+ return -EINVAL;
+}
+
+static inline int mtd_find_rootfs_from(struct mtd_info *mtd,
+ size_t from,
+ size_t limit,
+ size_t *ret_offset)
+{
+ return -ENODEV;
+}
+#endif /* CONFIG_MTD_SPLIT */
#endif /* _MTDSPLIT_H */