summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-11-12 20:11:26 +0100
committerBrian Norris <computersforpeace@gmail.com>2014-01-03 11:22:09 -0800
commit26a6d240e2a1480a33d76ac4db8855b6a7f2bd89 (patch)
tree9005e3ba09c83ad7be1d32ce840a558cce14f3fb /include/linux
parentda6fcf0e3720b94197432510f3d455ed9243773f (diff)
downloadop-kernel-dev-26a6d240e2a1480a33d76ac4db8855b6a7f2bd89.zip
op-kernel-dev-26a6d240e2a1480a33d76ac4db8855b6a7f2bd89.tar.gz
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 'include/linux')
-rw-r--r--include/linux/mtd/partitions.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mtd/partitions.h b/include/linux/mtd/partitions.h
index 1f8d24b..335ffca 100644
--- a/include/linux/mtd/partitions.h
+++ b/include/linux/mtd/partitions.h
@@ -37,7 +37,7 @@
*/
struct mtd_partition {
- char *name; /* identifier string */
+ const char *name; /* identifier string */
uint64_t size; /* partition size */
uint64_t offset; /* offset within the master MTD space */
uint32_t mask_flags; /* master MTD flags to mask out for this partition */
@@ -80,7 +80,7 @@ extern int register_mtd_parser(struct mtd_part_parser *parser);
extern int deregister_mtd_parser(struct mtd_part_parser *parser);
int mtd_is_partition(const struct mtd_info *mtd);
-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);
int mtd_del_partition(struct mtd_info *master, int partno);
uint64_t mtd_get_device_size(const struct mtd_info *mtd);
OpenPOWER on IntegriCloud