mtd: devices: add const qualifiers
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 12 Mar 2013 08:50:07 +0000 (10:50 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 5 Apr 2013 12:04:22 +0000 (13:04 +0100)
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>
drivers/mtd/devices/bcm47xxsflash.c
drivers/mtd/devices/docg3.c

index 95266285acb16554fdfef090812cc6840b940d1a..f86a78732dd8cae980b4b89ab6f94c40ffd924b6 100644 (file)
@@ -10,7 +10,7 @@
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("Serial flash driver for BCMA bus");
 
-static const char *probes[] = { "bcm47xxpart", NULL };
+static const char * const probes[] = { "bcm47xxpart", NULL };
 
 static int bcm47xxsflash_read(struct mtd_info *mtd, loff_t from, size_t len,
                              size_t *retlen, u_char *buf)
index 8510ccb9c6f00a450ed58cea115dd33d8070f749..a8caad21701c1ab6394e1428bf10828b7710c793 100644 (file)
@@ -123,7 +123,7 @@ static inline void doc_flash_address(struct docg3 *docg3, u8 addr)
        doc_writeb(docg3, addr, DOC_FLASHADDRESS);
 }
 
-static char const *part_probes[] = { "cmdlinepart", "saftlpart", NULL };
+static char const * const part_probes[] = { "cmdlinepart", "saftlpart", NULL };
 
 static int doc_register_readb(struct docg3 *docg3, int reg)
 {