Skip to content

Commit

Permalink
mtd: make device_type const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bhumika Goyal authored and Boris Brezillon committed Aug 21, 2017
1 parent 2acc717 commit 75864b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/mtdcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 75864b3

Please sign in to comment.