diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-07 03:18:52 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-08-30 16:51:52 -0400 |
commit | b2ac0376107b9350fbaf5abd94d33c4a07aa86c0 (patch) | |
tree | 30c608bf83eadc380c680b0ac3e474ed2fb325b1 | |
parent | 9a589c8bad41d117184c0b7d658956d525354af5 (diff) |
mtd: nand: mxc_nand: mark 'const' properly
The values pointed by the pointer are used as read-only.
Also, mtd_device_parse_register() uses 'part_probes[]' as
the second argument which is defined as 'const char * const *types'.
Thus, the 'const' should be moved to be after the '*'.
drivers/mtd/nand/mxc_nand.c:269:25: warning: duplicate const
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
-rw-r--r-- | drivers/mtd/nand/mxc_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index a99ff1d6d1ca..ce8242b6c3e7 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c | |||
@@ -266,7 +266,7 @@ static struct nand_ecclayout nandv2_hw_eccoob_4k = { | |||
266 | } | 266 | } |
267 | }; | 267 | }; |
268 | 268 | ||
269 | static const char const *part_probes[] = { | 269 | static const char * const part_probes[] = { |
270 | "cmdlinepart", "RedBoot", "ofpart", NULL }; | 270 | "cmdlinepart", "RedBoot", "ofpart", NULL }; |
271 | 271 | ||
272 | static void memcpy32_fromio(void *trg, const void __iomem *src, size_t size) | 272 | static void memcpy32_fromio(void *trg, const void __iomem *src, size_t size) |