]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mtd: nand: sharpsl: Add partition parsers platform data
authorAndrea Adami <andrea.adami@gmail.com>
Mon, 14 Aug 2017 20:48:33 +0000 (22:48 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 23 Aug 2017 14:49:32 +0000 (16:49 +0200)
With the introduction of sharpslpart partition parser we can now read the
offsets from NAND: we specify the list of the parsers as platform data, with
cmdlinepart and ofpart parsers first allowing to override the part. table
written in NAND. This is done in the board files using this driver.

Thus, we need to extend sharpsl_nand_platform_data to consider the partition
parsers.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
include/linux/mtd/sharpsl.h

index 65e91d0fa9817b8d66d126754ccec5ec3f3b40c0..6381a7d6c28917a42698e613104ee7d8d4db9fbb 100644 (file)
@@ -17,4 +17,5 @@ struct sharpsl_nand_platform_data {
        const struct mtd_ooblayout_ops *ecc_layout;
        struct mtd_partition    *partitions;
        unsigned int            nr_partitions;
+       const char *const       *part_parsers;
 };