From: Bhumika Goyal Date: Sat, 19 Aug 2017 08:22:17 +0000 (+0530) Subject: mtd: make device_type const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=75864b301c91bf41ec2fb49ce4efb62fcb48b954;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mtd: make device_type const Make this const as it is only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal Signed-off-by: Boris Brezillon --- diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index f872a99501ed..e7ea842ba3db 100644 --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c @@ -340,7 +340,7 @@ static struct attribute *mtd_attrs[] = { }; ATTRIBUTE_GROUPS(mtd); -static struct device_type mtd_devtype = { +static const struct device_type mtd_devtype = { .name = "mtd", .groups = mtd_groups, .release = mtd_release,