diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-09-21 17:55:54 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-09-21 17:55:54 +0000 |
commit | 61c39f923be2d29702f8eb3a27519a00b790cd79 (patch) | |
tree | e50a0b97bcf33b942dc1ba9f43379c5a6fae5d2f /target/linux/generic/files/drivers/mtd/mtdsplit.h | |
parent | daec7ad7688415156e2730e401503d09bd3acf91 (diff) | |
download | mtk-20170518-61c39f923be2d29702f8eb3a27519a00b790cd79.zip mtk-20170518-61c39f923be2d29702f8eb3a27519a00b790cd79.tar.gz mtk-20170518-61c39f923be2d29702f8eb3a27519a00b790cd79.tar.bz2 |
kernel/3.10: add more helpers to the mtdsplit code
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38111
Diffstat (limited to 'target/linux/generic/files/drivers/mtd/mtdsplit.h')
-rw-r--r-- | target/linux/generic/files/drivers/mtd/mtdsplit.h | 23 |
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 8ba6c8b..48cb44c 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 */ |