diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-11-12 20:11:26 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-03 11:22:09 -0800 |
commit | 26a6d240e2a1480a33d76ac4db8855b6a7f2bd89 (patch) | |
tree | 9005e3ba09c83ad7be1d32ce840a558cce14f3fb /drivers/mtd/mtdpart.c | |
parent | da6fcf0e3720b94197432510f3d455ed9243773f (diff) | |
download | linux-26a6d240e2a1480a33d76ac4db8855b6a7f2bd89.tar.gz linux-26a6d240e2a1480a33d76ac4db8855b6a7f2bd89.tar.bz2 linux-26a6d240e2a1480a33d76ac4db8855b6a7f2bd89.zip |
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>
Diffstat (limited to 'drivers/mtd/mtdpart.c')
-rw-r--r-- | drivers/mtd/mtdpart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c index 6e732c3820c1..67a89bb45943 100644 --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c @@ -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; |