diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-03-12 04:50:07 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-04-05 08:04:22 -0400 |
commit | afffeec9e0cf991e5cf697abdb89123ec708f097 (patch) | |
tree | e074902dabd3c6a62bbc7e1a73f1330d246ffd7d /drivers/mtd | |
parent | 0984c8910426371205da0b60fc1dae64a996fb64 (diff) |
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/devices/bcm47xxsflash.c | 2 | ||||
-rw-r--r-- | drivers/mtd/devices/docg3.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/devices/bcm47xxsflash.c b/drivers/mtd/devices/bcm47xxsflash.c index 95266285acb1..f86a78732dd8 100644 --- a/drivers/mtd/devices/bcm47xxsflash.c +++ b/drivers/mtd/devices/bcm47xxsflash.c | |||
@@ -10,7 +10,7 @@ | |||
10 | MODULE_LICENSE("GPL"); | 10 | MODULE_LICENSE("GPL"); |
11 | MODULE_DESCRIPTION("Serial flash driver for BCMA bus"); | 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 | static int bcm47xxsflash_read(struct mtd_info *mtd, loff_t from, size_t len, | 15 | static int bcm47xxsflash_read(struct mtd_info *mtd, loff_t from, size_t len, |
16 | size_t *retlen, u_char *buf) | 16 | size_t *retlen, u_char *buf) |
diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c index 8510ccb9c6f0..a8caad21701c 100644 --- a/drivers/mtd/devices/docg3.c +++ b/drivers/mtd/devices/docg3.c | |||
@@ -123,7 +123,7 @@ static inline void doc_flash_address(struct docg3 *docg3, u8 addr) | |||
123 | doc_writeb(docg3, addr, DOC_FLASHADDRESS); | 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 | static int doc_register_readb(struct docg3 *docg3, int reg) | 128 | static int doc_register_readb(struct docg3 *docg3, int reg) |
129 | { | 129 | { |