diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-28 10:24:57 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2017-11-06 23:26:01 +0100 |
commit | d4906688d49150eb77ddc9baafc3ea14bc158f03 (patch) | |
tree | 280508adb925be23bb42a939d0788add394c7ea8 /drivers/mtd/nand/cmx270_nand.c | |
parent | mtd: plat-ram: Replace manual resource management by devm (diff) | |
download | linux-d4906688d49150eb77ddc9baafc3ea14bc158f03.tar.xz linux-d4906688d49150eb77ddc9baafc3ea14bc158f03.zip |
mtd: constify mtd_partition
mtd_partition are not supposed to change at runtime.
Functions 'mtd_device_parse_register' working with const mtd_partition
provided by <linux/mtd/mtd.h>. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/nand/cmx270_nand.c')
-rw-r--r-- | drivers/mtd/nand/cmx270_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/cmx270_nand.c b/drivers/mtd/nand/cmx270_nand.c index 1fc435f994e1..b01c9804590e 100644 --- a/drivers/mtd/nand/cmx270_nand.c +++ b/drivers/mtd/nand/cmx270_nand.c @@ -42,7 +42,7 @@ static void __iomem *cmx270_nand_io; /* * Define static partitions for flash device */ -static struct mtd_partition partition_info[] = { +static const struct mtd_partition partition_info[] = { [0] = { .name = "cmx270-0", .offset = 0, |