summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/ams-delta.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-28 11:24:57 +0300
committerRichard Weinberger <richard@nod.at>2017-11-07 01:26:01 +0300
commitd4906688d49150eb77ddc9baafc3ea14bc158f03 (patch)
tree280508adb925be23bb42a939d0788add394c7ea8 /drivers/mtd/nand/ams-delta.c
parent2e442aebed99fd27eaa4e3539d9c50ef1cc67013 (diff)
downloadlinux-d4906688d49150eb77ddc9baafc3ea14bc158f03.tar.xz
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/ams-delta.c')
-rw-r--r--drivers/mtd/nand/ams-delta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/ams-delta.c b/drivers/mtd/nand/ams-delta.c
index dcec9cf4983f..d60ada45c549 100644
--- a/drivers/mtd/nand/ams-delta.c
+++ b/drivers/mtd/nand/ams-delta.c
@@ -41,7 +41,7 @@ static struct mtd_info *ams_delta_mtd = NULL;
* Define partitions for flash devices
*/
-static struct mtd_partition partition_info[] = {
+static const struct mtd_partition partition_info[] = {
{ .name = "Kernel",
.offset = 0,
.size = 3 * SZ_1M + SZ_512K },