diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-01-02 21:52:35 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-02 21:52:35 +0000 |
commit | 4153c0adff074167f1eb934235129471d2c04199 (patch) | |
tree | 9e90c8956937880242065443a6da0d8a0ed22aff /target/linux/generic/files/drivers/mtd/mtdsplit.h | |
parent | 6bfd210ade2a5d35950f56aeeac2d0ee1b8499e0 (diff) | |
download | mtk-20170518-4153c0adff074167f1eb934235129471d2c04199.zip mtk-20170518-4153c0adff074167f1eb934235129471d2c04199.tar.gz mtk-20170518-4153c0adff074167f1eb934235129471d2c04199.tar.bz2 |
kernel: move mtdsplit files to drivers/mtd/mtdsplit/ to simplify maintenance, unify patches across kernel versions
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43805
Diffstat (limited to 'target/linux/generic/files/drivers/mtd/mtdsplit.h')
-rw-r--r-- | target/linux/generic/files/drivers/mtd/mtdsplit.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit.h b/target/linux/generic/files/drivers/mtd/mtdsplit.h deleted file mode 100644 index 7ee88b0..0000000 --- a/target/linux/generic/files/drivers/mtd/mtdsplit.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2009-2013 Felix Fietkau <nbd@openwrt.org> - * Copyright (C) 2009-2013 Gabor Juhos <juhosg@openwrt.org> - * Copyright (C) 2012 Jonas Gorski <jogo@openwrt.org> - * Copyright (C) 2013 Hauke Mehrtens <hauke@hauke-m.de> - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 as published - * by the Free Software Foundation. - * - */ - -#ifndef _MTDSPLIT_H -#define _MTDSPLIT_H - -#define KERNEL_PART_NAME "kernel" -#define ROOTFS_PART_NAME "rootfs" - -#define ROOTFS_SPLIT_NAME "rootfs_data" - -#ifdef CONFIG_MTD_SPLIT -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, - size_t *squashfs_len) -{ - return -ENODEV; -} - -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 */ |