9
0
Fork 0

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>
This commit is contained in:
Uwe Kleine-König 2014-02-27 21:39:04 +01:00 committed by Sascha Hauer
parent e3ae621635
commit 14d0355d7c
2 changed files with 3 additions and 3 deletions

View File

@ -261,7 +261,7 @@ static LIST_HEAD(bb_list);
* @param[in] name Partition name (can be obtained with devinfo command) * @param[in] name Partition name (can be obtained with devinfo command)
* @return The device representing the new partition. * @return The device representing the new partition.
*/ */
int dev_add_bb_dev(char *path, const char *name) int dev_add_bb_dev(const char *path, const char *name)
{ {
struct nand_bb *bb; struct nand_bb *bb;
int ret = -ENOMEM; int ret = -ENOMEM;

View File

@ -5,10 +5,10 @@
struct nand_bb; struct nand_bb;
#ifdef CONFIG_NAND #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); int dev_remove_bb_dev(const char *name);
#else #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; return 0;
} }
static inline int dev_remove_bb_dev(const char *name) static inline int dev_remove_bb_dev(const char *name)