Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75864b30 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Boris Brezillon
Browse files

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
parent 2acc717b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,