Skip to content

Commit afffeec

Browse files
dedekindDavid Woodhouse
authored andcommitted
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>
1 parent 0984c89 commit afffeec

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/mtd/devices/bcm47xxsflash.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
MODULE_LICENSE("GPL");
1111
MODULE_DESCRIPTION("Serial flash driver for BCMA bus");
1212

13-
static const char *probes[] = { "bcm47xxpart", NULL };
13+
static const char * const probes[] = { "bcm47xxpart", NULL };
1414

1515
static int bcm47xxsflash_read(struct mtd_info *mtd, loff_t from, size_t len,
1616
size_t *retlen, u_char *buf)

‎drivers/mtd/devices/docg3.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static inline void doc_flash_address(struct docg3 *docg3, u8 addr)
123123
doc_writeb(docg3, addr, DOC_FLASHADDRESS);
124124
}
125125

126-
static char const *part_probes[] = { "cmdlinepart", "saftlpart", NULL };
126+
static char const * const part_probes[] = { "cmdlinepart", "saftlpart", NULL };
127127

128128
static int doc_register_readb(struct docg3 *docg3, int reg)
129129
{

0 commit comments

Comments
 (0)