mtd: mtdram: add missing 'const'

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jan 28 00:59:07 EST 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=0a8899b31a7d6c4a3bc7fdbd7c8c1fc79e726363
Commit:     0a8899b31a7d6c4a3bc7fdbd7c8c1fc79e726363
Parent:     99ed1a167578f85963a0cdf5fd7b2291eaecc400
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Sat Jan 11 15:51:45 2014 -0800
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Jan 20 11:55:23 2014 -0800

    mtd: mtdram: add missing 'const'
    
    mtdram_init_device() wasn't updated along with mtd_partition.name.
    
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
    Cc: Geert Uytterhoeven <geert at linux-m68k.org>
---
 drivers/mtd/devices/mtdram.c | 2 +-
 include/linux/mtd/mtdram.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/devices/mtdram.c b/drivers/mtd/devices/mtdram.c
index ec59d65..8e28508 100644
--- a/drivers/mtd/devices/mtdram.c
+++ b/drivers/mtd/devices/mtdram.c
@@ -92,7 +92,7 @@ static void __exit cleanup_mtdram(void)
 }
 
 int mtdram_init_device(struct mtd_info *mtd, void *mapped_address,
-		unsigned long size, char *name)
+		unsigned long size, const char *name)
 {
 	memset(mtd, 0, sizeof(*mtd));
 
diff --git a/include/linux/mtd/mtdram.h b/include/linux/mtd/mtdram.h
index 6889131..628a6a2 100644
--- a/include/linux/mtd/mtdram.h
+++ b/include/linux/mtd/mtdram.h
@@ -3,6 +3,6 @@
 
 #include <linux/mtd/mtd.h>
 int mtdram_init_device(struct mtd_info *mtd, void *mapped_address,
-			unsigned long size, char *name);
+			unsigned long size, const char *name);
 
 #endif /* __MTD_MTDRAM_H__ */



More information about the linux-mtd-cvs mailing list