Skip to content

Commit b2ac037

Browse files
Jingoo HanDavid Woodhouse
authored andcommitted
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>
1 parent 9a589c8 commit b2ac037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd/nand/mxc_nand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ static struct nand_ecclayout nandv2_hw_eccoob_4k = {
266266
}
267267
};
268268

269-
static const char const *part_probes[] = {
269+
static const char * const part_probes[] = {
270270
"cmdlinepart", "RedBoot", "ofpart", NULL };
271271

272272
static void memcpy32_fromio(void *trg, const void __iomem *src, size_t size)

0 commit comments

Comments
 (0)