diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2021-02-25 16:33:29 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-03-11 09:37:49 +0100 |
commit | 462d69a2dc3d6d8289d99479961632411b9d30ad (patch) | |
tree | 999710005821bd1a20af24d842dea43d270f5ed2 /drivers/mtd/mtdcore.c | |
parent | 1ca890d325c8ec11e553c706b339bf07a6450696 (diff) | |
download | linux-stable-462d69a2dc3d6d8289d99479961632411b9d30ad.tar.gz linux-stable-462d69a2dc3d6d8289d99479961632411b9d30ad.tar.bz2 linux-stable-462d69a2dc3d6d8289d99479961632411b9d30ad.zip |
mtd: mtdcore: constify name param in mtd_bdi_init
The bdi name is not modified by the function, it should be const.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210225143329.430012-1-tomas.winkler@intel.com
Diffstat (limited to 'drivers/mtd/mtdcore.c')
-rw-r--r-- | drivers/mtd/mtdcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index 0b095975895e..38782ceea1f6 100644 --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c @@ -2173,7 +2173,7 @@ static int mtd_proc_show(struct seq_file *m, void *v) /*====================================================================*/ /* Init code */ -static struct backing_dev_info * __init mtd_bdi_init(char *name) +static struct backing_dev_info * __init mtd_bdi_init(const char *name) { struct backing_dev_info *bdi; int ret; |