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>
This commit is contained in:

committed by
Richard Weinberger

parent
2e442aebed
commit
d4906688d4
@@ -107,7 +107,7 @@ static struct map_info nettel_amd_map = {
|
||||
.bankwidth = AMD_BUSWIDTH,
|
||||
};
|
||||
|
||||
static struct mtd_partition nettel_amd_partitions[] = {
|
||||
static const struct mtd_partition nettel_amd_partitions[] = {
|
||||
{
|
||||
.name = "SnapGear BIOS config",
|
||||
.offset = 0x000e0000,
|
||||
|
Reference in New Issue
Block a user