summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2014-02-27 21:39:04 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-02-28 08:20:26 +0100
commit14d0355d7c1b55bc4713b8c7768ae012840bbc85 (patch)
tree709d592e59e20c2f2c5157e7d3c97895b0a5ae9c /include
parente3ae621635a9a6c39551b7a26321d839d676f3bf (diff)
downloadbarebox-14d0355d7c1b55bc4713b8c7768ae012840bbc85.tar.gz
barebox-14d0355d7c1b55bc4713b8c7768ae012840bbc85.tar.xz
mtd/nand: constify filename parameter
The string pointed to isn't modified, so declare it as const. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/nand.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/nand.h b/include/nand.h
index b1762dfa45..a0e77cc8cd 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -5,10 +5,10 @@
struct nand_bb;
#ifdef CONFIG_NAND
-int dev_add_bb_dev(char *filename, const char *name);
+int dev_add_bb_dev(const char *filename, const char *name);
int dev_remove_bb_dev(const char *name);
#else
-static inline int dev_add_bb_dev(char *filename, const char *name) {
+static inline int dev_add_bb_dev(const char *filename, const char *name) {
return 0;
}
static inline int dev_remove_bb_dev(const char *name)