diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-28 13:54:57 +0530 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2017-11-06 23:26:01 +0100 |
commit | d4906688d49150eb77ddc9baafc3ea14bc158f03 (patch) | |
tree | 280508adb925be23bb42a939d0788add394c7ea8 /drivers/mtd/maps/cfi_flagadm.c | |
parent | 2e442aebed99fd27eaa4e3539d9c50ef1cc67013 (diff) | |
download | linux-stable-d4906688d49150eb77ddc9baafc3ea14bc158f03.tar.gz linux-stable-d4906688d49150eb77ddc9baafc3ea14bc158f03.tar.bz2 linux-stable-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/cfi_flagadm.c')
-rw-r--r-- | drivers/mtd/maps/cfi_flagadm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/cfi_flagadm.c b/drivers/mtd/maps/cfi_flagadm.c index d504b3d1791d..70f488628464 100644 --- a/drivers/mtd/maps/cfi_flagadm.c +++ b/drivers/mtd/maps/cfi_flagadm.c @@ -61,7 +61,7 @@ static struct map_info flagadm_map = { .bankwidth = 2, }; -static struct mtd_partition flagadm_parts[] = { +static const struct mtd_partition flagadm_parts[] = { { .name = "Bootloader", .offset = FLASH_PARTITION0_ADDR, |