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>
这个提交包含在:
@@ -583,7 +583,7 @@ static struct mtd_erase_region_info erase_regions[] = {
|
||||
}
|
||||
};
|
||||
|
||||
static struct mtd_partition lart_partitions[] = {
|
||||
static const struct mtd_partition lart_partitions[] = {
|
||||
/* blob */
|
||||
{
|
||||
.name = "blob",
|
||||
|
在新工单中引用
屏蔽一个用户