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 20:22:09 +0100 |
commit | 26a6d240e2a1480a33d76ac4db8855b6a7f2bd89 (patch) | |
tree | 9005e3ba09c83ad7be1d32ce840a558cce14f3fb /drivers/mtd/mtdpart.c | |
parent | mtd: ms02-nv: remove superfluous name cast (diff) | |
download | linux-26a6d240e2a1480a33d76ac4db8855b6a7f2bd89.tar.xz 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; |