summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ar7part.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-12-04 15:25:14 -0800
committerBrian Norris <computersforpeace@gmail.com>2015-12-09 10:21:57 -0800
commitb9adf469f8abb8a66f5795bbd8fe50fe201a14a1 (patch)
tree74cae4be670419cd995bff000a279519dfac230e /drivers/mtd/ar7part.c
parentc3168d26c8deea4cc0202bb19341ab55247c3941 (diff)
downloadtalos-obmc-linux-b9adf469f8abb8a66f5795bbd8fe50fe201a14a1.tar.gz
talos-obmc-linux-b9adf469f8abb8a66f5795bbd8fe50fe201a14a1.zip
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 'drivers/mtd/ar7part.c')
-rw-r--r--drivers/mtd/ar7part.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ar7part.c b/drivers/mtd/ar7part.c
index 9203b96fd789..90575deff0ae 100644
--- a/drivers/mtd/ar7part.c
+++ b/drivers/mtd/ar7part.c
@@ -43,7 +43,7 @@ struct ar7_bin_rec {
};
static int create_mtd_partitions(struct mtd_info *master,
- struct mtd_partition **pparts,
+ const struct mtd_partition **pparts,
struct mtd_part_parser_data *data)
{
struct ar7_bin_rec header;
OpenPOWER on IntegriCloud