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>
This commit is contained in:
@@ -73,6 +73,13 @@ struct mtd_part_parser {
|
||||
struct mtd_part_parser_data *);
|
||||
};
|
||||
|
||||
/* Container for passing around a set of parsed partitions */
|
||||
struct mtd_partitions {
|
||||
const struct mtd_partition *parts;
|
||||
int nr_parts;
|
||||
const struct mtd_part_parser *parser;
|
||||
};
|
||||
|
||||
extern int __register_mtd_parser(struct mtd_part_parser *parser,
|
||||
struct module *owner);
|
||||
#define register_mtd_parser(parser) __register_mtd_parser(parser, THIS_MODULE)
|
||||
|
Reference in New Issue
Block a user