summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-29 07:04:52 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-29 07:04:55 +0200
commit5f11e80670a7cf9acfca05b91b3ccf054b8457ae (patch)
tree9b42c17f2e99ebf81da2139ab04b70cbfd748350 /include
parentaf5f49c2ae29dbd737ae3014dea79ba9b2bd2b17 (diff)
downloadbarebox-5f11e80670a7cf9acfca05b91b3ccf054b8457ae.tar.gz
barebox-5f11e80670a7cf9acfca05b91b3ccf054b8457ae.tar.xz
mtd: Make devname argument to add_mtd_device const
add_mtd_device duplicates the string where necessary, so make it const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mtd/mtd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 33f1fd512d..7e828bc98f 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -270,7 +270,7 @@ static inline uint32_t mtd_div_by_wb(uint64_t sz, struct mtd_info *mtd)
/* Kernel-side ioctl definitions */
-extern int add_mtd_device(struct mtd_info *mtd, char *devname, int device_id);
+extern int add_mtd_device(struct mtd_info *mtd, const char *devname, int device_id);
extern int del_mtd_device (struct mtd_info *mtd);
extern struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num);