Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bhumika Goyal and committed by
Boris Brezillon
75864b30 2acc717b

+1 -1
+1 -1
drivers/mtd/mtdcore.c
··· 340 340 }; 341 341 ATTRIBUTE_GROUPS(mtd); 342 342 343 - static struct device_type mtd_devtype = { 343 + static const struct device_type mtd_devtype = { 344 344 .name = "mtd", 345 345 .groups = mtd_groups, 346 346 .release = mtd_release,