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:
parent
e3ae621635
commit
14d0355d7c
|
@ -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;
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue