summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdcore.c
diff options
context:
space:
mode:
authorBhumika Goyal2017-08-19 10:22:17 +0200
committerBoris Brezillon2017-08-21 14:33:50 +0200
commit75864b301c91bf41ec2fb49ce4efb62fcb48b954 (patch)
treec544a27f92eca91e933316964302879f33a275a7 /drivers/mtd/mtdcore.c
parentmtd: physmap_of: Retire Gemini pad control (diff)
downloadkernel-qcow2-linux-75864b301c91bf41ec2fb49ce4efb62fcb48b954.tar.gz
kernel-qcow2-linux-75864b301c91bf41ec2fb49ce4efb62fcb48b954.tar.xz
kernel-qcow2-linux-75864b301c91bf41ec2fb49ce4efb62fcb48b954.zip
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 <bhumirks@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/mtdcore.c')
-rw-r--r--drivers/mtd/mtdcore.c2
1 files changed, 1 insertions, 1 deletions
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,