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/ofpart.c | |
parent | da6fcf0e3720b94197432510f3d455ed9243773f (diff) | |
download | linux-26a6d240e2a1480a33d76ac4db8855b6a7f2bd89.tar.bz2 |
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/ofpart.c')
-rw-r--r-- | drivers/mtd/ofpart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/ofpart.c b/drivers/mtd/ofpart.c index d64f8c30945f..f0a708bf9b0e 100644 --- a/drivers/mtd/ofpart.c +++ b/drivers/mtd/ofpart.c @@ -81,7 +81,7 @@ static int parse_ofpart_partitions(struct mtd_info *master, partname = of_get_property(pp, "label", &len); if (!partname) partname = of_get_property(pp, "name", &len); - (*pparts)[i].name = (char *)partname; + (*pparts)[i].name = partname; if (of_get_property(pp, "read-only", &len)) (*pparts)[i].mask_flags |= MTD_WRITEABLE; @@ -152,7 +152,7 @@ static int parse_ofoldpart_partitions(struct mtd_info *master, if (names && (plen > 0)) { int len = strlen(names) + 1; - (*pparts)[i].name = (char *)names; + (*pparts)[i].name = names; plen -= len; names += len; } else { |