Commit afffeec9e0cf991e5cf697abdb89123ec708f097

Authored by Artem Bityutskiy
Committed by David Woodhouse
1 parent 0984c89104

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>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

drivers/mtd/devices/bcm47xxsflash.c
... ... @@ -10,7 +10,7 @@
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)
drivers/mtd/devices/docg3.c
... ... @@ -123,7 +123,7 @@
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 {