diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-19 13:52:17 +0530 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-08-21 14:33:50 +0200 |
commit | 75864b301c91bf41ec2fb49ce4efb62fcb48b954 (patch) | |
tree | c544a27f92eca91e933316964302879f33a275a7 /drivers/mtd | |
parent | 2acc717b7a196c355f3a126a9ac4e9df784113e7 (diff) | |
download | linux-75864b301c91bf41ec2fb49ce4efb62fcb48b954.tar.bz2 |
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')
-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, |