diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-19 11:22:17 +0300 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-08-21 15:33:50 +0300 |
commit | 75864b301c91bf41ec2fb49ce4efb62fcb48b954 (patch) | |
tree | c544a27f92eca91e933316964302879f33a275a7 /drivers/mtd/mtdcore.c | |
parent | 2acc717b7a196c355f3a126a9ac4e9df784113e7 (diff) | |
download | linux-75864b301c91bf41ec2fb49ce4efb62fcb48b954.tar.xz |
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.c | 2 |
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, |