summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdcore.h
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-12-04 15:25:17 -0800
committerBrian Norris <computersforpeace@gmail.com>2015-12-09 10:22:09 -0800
commit07fd2f871c5e3dfb8ff5eb9c4b44fdb4cf1aeff5 (patch)
treeeed4f64d55157ba411a5c204436e1aadb82c209d /drivers/mtd/mtdcore.h
parentc42c2710d64381fd48d36b278e0744aa683d93fe (diff)
downloadlinux-07fd2f871c5e3dfb8ff5eb9c4b44fdb4cf1aeff5.tar.gz
linux-07fd2f871c5e3dfb8ff5eb9c4b44fdb4cf1aeff5.tar.bz2
linux-07fd2f871c5e3dfb8ff5eb9c4b44fdb4cf1aeff5.zip
mtd: partitions: pass around 'mtd_partitions' wrapper struct
For some of the core partitioning code, it helps to keep info about the parsed partition (and who parsed them) together in one place. Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/mtdcore.h')
-rw-r--r--drivers/mtd/mtdcore.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mtd/mtdcore.h b/drivers/mtd/mtdcore.h
index 537ec66f9cfd..ce81cc2002f4 100644
--- a/drivers/mtd/mtdcore.h
+++ b/drivers/mtd/mtdcore.h
@@ -10,8 +10,11 @@ int add_mtd_device(struct mtd_info *mtd);
int del_mtd_device(struct mtd_info *mtd);
int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, int);
int del_mtd_partitions(struct mtd_info *);
+
+struct mtd_partitions;
+
int parse_mtd_partitions(struct mtd_info *master, const char * const *types,
- const struct mtd_partition **pparts,
+ struct mtd_partitions *pparts,
struct mtd_part_parser_data *data);
int __init init_mtdchar(void);