summaryrefslogtreecommitdiff
path: root/drivers/mtd/afs.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-12-04 23:25:14 (GMT)
committerBrian Norris <computersforpeace@gmail.com>2015-12-09 18:21:57 (GMT)
commitb9adf469f8abb8a66f5795bbd8fe50fe201a14a1 (patch)
tree74cae4be670419cd995bff000a279519dfac230e /drivers/mtd/afs.c
parentc3168d26c8deea4cc0202bb19341ab55247c3941 (diff)
downloadlinux-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 'drivers/mtd/afs.c')
-rw-r--r--drivers/mtd/afs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/afs.c b/drivers/mtd/afs.c
index e02dae3..d61b7ed 100644
--- a/drivers/mtd/afs.c
+++ b/drivers/mtd/afs.c
@@ -162,7 +162,7 @@ afs_read_iis_v1(struct mtd_info *mtd, struct image_info_v1 *iis, u_int ptr)
}
static int parse_afs_partitions(struct mtd_info *mtd,
- struct mtd_partition **pparts,
+ const struct mtd_partition **pparts,
struct mtd_part_parser_data *data)
{
struct mtd_partition *parts;