diff options
author | Brian Norris <computersforpeace@gmail.com> | 2015-12-05 02:25:14 +0300 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-12-09 21:21:57 +0300 |
commit | b9adf469f8abb8a66f5795bbd8fe50fe201a14a1 (patch) | |
tree | 74cae4be670419cd995bff000a279519dfac230e /include/linux/mtd/partitions.h | |
parent | c3168d26c8deea4cc0202bb19341ab55247c3941 (diff) | |
download | linux-b9adf469f8abb8a66f5795bbd8fe50fe201a14a1.tar.xz |
mtd: partitions: make parsers return 'const' partition arrays
We only want to modify these arrays inside the parser "drivers", so the
drivers should construct them however they like, then return them as
immutable arrays.
This will make other refactorings easier.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'include/linux/mtd/partitions.h')
-rw-r--r-- | include/linux/mtd/partitions.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mtd/partitions.h b/include/linux/mtd/partitions.h index d002d9b5d797..6185536daacc 100644 --- a/include/linux/mtd/partitions.h +++ b/include/linux/mtd/partitions.h @@ -69,7 +69,7 @@ struct mtd_part_parser { struct list_head list; struct module *owner; const char *name; - int (*parse_fn)(struct mtd_info *, struct mtd_partition **, + int (*parse_fn)(struct mtd_info *, const struct mtd_partition **, struct mtd_part_parser_data *); }; |