]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: partitions: make parsers return 'const' partition arrays
authorBrian Norris <computersforpeace@gmail.com>
Fri, 4 Dec 2015 23:25:14 +0000 (15:25 -0800)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 9 Dec 2015 18:21:57 +0000 (10:21 -0800)
commitb9adf469f8abb8a66f5795bbd8fe50fe201a14a1
tree74cae4be670419cd995bff000a279519dfac230e
parentc3168d26c8deea4cc0202bb19341ab55247c3941
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>
drivers/mtd/afs.c
drivers/mtd/ar7part.c
drivers/mtd/bcm47xxpart.c
drivers/mtd/bcm63xxpart.c
drivers/mtd/cmdlinepart.c
drivers/mtd/ofpart.c
drivers/mtd/redboot.c
include/linux/mtd/partitions.h