summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/bcm47xxpart.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-12-05 00:25:14 +0100
committerBrian Norris <computersforpeace@gmail.com>2015-12-09 19:21:57 +0100
commitb9adf469f8abb8a66f5795bbd8fe50fe201a14a1 (patch)
tree74cae4be670419cd995bff000a279519dfac230e /drivers/mtd/bcm47xxpart.c
parentmtd: ofpart: assign return argument exactly once (diff)
downloadlinux-b9adf469f8abb8a66f5795bbd8fe50fe201a14a1.tar.xz
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/bcm47xxpart.c')
-rw-r--r--drivers/mtd/bcm47xxpart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/bcm47xxpart.c b/drivers/mtd/bcm47xxpart.c
index 92a6dd18198b..8282f47bcf5d 100644
--- a/drivers/mtd/bcm47xxpart.c
+++ b/drivers/mtd/bcm47xxpart.c
@@ -82,7 +82,7 @@ out_default:
}
static int bcm47xxpart_parse(struct mtd_info *master,
- struct mtd_partition **pparts,
+ const struct mtd_partition **pparts,
struct mtd_part_parser_data *data)
{
struct mtd_partition *parts;