mtd: make mtd_partition.name const

This allows to drop a few casts.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
Geert Uytterhoeven
2013-11-12 20:11:26 +01:00
committed by Brian Norris
parent da6fcf0e37
commit 26a6d240e2
3 changed files with 5 additions and 5 deletions

View File

@@ -534,7 +534,7 @@ out_register:
return slave;
}
int mtd_add_partition(struct mtd_info *master, char *name,
int mtd_add_partition(struct mtd_info *master, const char *name,
long long offset, long long length)
{
struct mtd_partition part;