mtd: mtdcore: use const qualifier
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Apr 5 08:59:08 EDT 2013
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=ccef4dcc5a1628dd662297b028f08e0b06bbf05e
Commit: ccef4dcc5a1628dd662297b028f08e0b06bbf05e
Parent: afffeec9e0cf991e5cf697abdb89123ec708f097
Author: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
AuthorDate: Tue Mar 12 10:51:35 2013 +0200
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Apr 5 13:04:27 2013 +0100
mtd: mtdcore: use const qualifier
Be a bit stricter and add few more 'const' qualifiers.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/mtdpart.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c
index 9ee0911..3014933 100644
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -694,7 +694,7 @@ EXPORT_SYMBOL_GPL(deregister_mtd_parser);
* Do not forget to update 'parse_mtd_partitions()' kerneldoc comment if you
* are changing this array!
*/
-static const char *default_mtd_part_types[] = {
+static const char * const default_mtd_part_types[] = {
"cmdlinepart",
"ofpart",
NULL
More information about the linux-mtd-cvs
mailing list