aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/sbc_gxx.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-28 13:54:57 +0530
committerRichard Weinberger <richard@nod.at>2017-11-06 23:26:01 +0100
commitd4906688d49150eb77ddc9baafc3ea14bc158f03 (patch)
tree280508adb925be23bb42a939d0788add394c7ea8 /drivers/mtd/maps/sbc_gxx.c
parentmtd: plat-ram: Replace manual resource management by devm (diff)
downloadlinux-dev-d4906688d49150eb77ddc9baafc3ea14bc158f03.tar.xz
linux-dev-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/maps/sbc_gxx.c')
-rw-r--r--drivers/mtd/maps/sbc_gxx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/sbc_gxx.c b/drivers/mtd/maps/sbc_gxx.c
index 556a2dfe94c5..4337d279ad83 100644
--- a/drivers/mtd/maps/sbc_gxx.c
+++ b/drivers/mtd/maps/sbc_gxx.c
@@ -87,7 +87,7 @@ static DEFINE_SPINLOCK(sbc_gxx_spin);
/* partition_info gives details on the logical partitions that the split the
* single flash device into. If the size if zero we use up to the end of the
* device. */
-static struct mtd_partition partition_info[]={
+static const struct mtd_partition partition_info[] = {
{ .name = "SBC-GXx flash boot partition",
.offset = 0,
.size = BOOT_PARTITION_SIZE_KiB*1024 },