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

mtd: devices: add const qualifiers

Be a bit stricter and add few more 'const' qualifiers.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

authored by

Artem Bityutskiy and committed by
David Woodhouse
afffeec9 0984c891

+2 -2
+1 -1
drivers/mtd/devices/bcm47xxsflash.c
··· 10 10 MODULE_LICENSE("GPL"); 11 11 MODULE_DESCRIPTION("Serial flash driver for BCMA bus"); 12 12 13 - static const char *probes[] = { "bcm47xxpart", NULL }; 13 + static const char * const probes[] = { "bcm47xxpart", NULL }; 14 14 15 15 static int bcm47xxsflash_read(struct mtd_info *mtd, loff_t from, size_t len, 16 16 size_t *retlen, u_char *buf)
+1 -1
drivers/mtd/devices/docg3.c
··· 123 123 doc_writeb(docg3, addr, DOC_FLASHADDRESS); 124 124 } 125 125 126 - static char const *part_probes[] = { "cmdlinepart", "saftlpart", NULL }; 126 + static char const * const part_probes[] = { "cmdlinepart", "saftlpart", NULL }; 127 127 128 128 static int doc_register_readb(struct docg3 *docg3, int reg) 129 129 {