mirror of https://gitee.com/openkylin/linux.git
mtd: rawnand: nandsim: Consistent use of 'ns' instead of 'dev'
The nandsim object is called 'ns' almost everywhere, keep it that way everywhere for consistency. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20200525085851.17682-2-miquel.raynal@bootlin.com
This commit is contained in:
parent
7e7c7df5d5
commit
6be834c667
|
@ -487,12 +487,12 @@ DEFINE_SHOW_ATTRIBUTE(nandsim);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* nandsim_debugfs_create - initialize debugfs
|
* nandsim_debugfs_create - initialize debugfs
|
||||||
* @dev: nandsim device description object
|
* @ns: nandsim device description object
|
||||||
*
|
*
|
||||||
* This function creates all debugfs files for UBI device @ubi. Returns zero in
|
* This function creates all debugfs files for UBI device @ubi. Returns zero in
|
||||||
* case of success and a negative error code in case of failure.
|
* case of success and a negative error code in case of failure.
|
||||||
*/
|
*/
|
||||||
static int nandsim_debugfs_create(struct nandsim *dev)
|
static int nandsim_debugfs_create(struct nandsim *ns)
|
||||||
{
|
{
|
||||||
struct dentry *root = nsmtd->dbg.dfs_dir;
|
struct dentry *root = nsmtd->dbg.dfs_dir;
|
||||||
struct dentry *dent;
|
struct dentry *dent;
|
||||||
|
@ -508,8 +508,8 @@ static int nandsim_debugfs_create(struct nandsim *dev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
dent = debugfs_create_file("nandsim_wear_report", S_IRUSR,
|
dent = debugfs_create_file("nandsim_wear_report", S_IRUSR, root, ns,
|
||||||
root, dev, &nandsim_fops);
|
&nandsim_fops);
|
||||||
if (IS_ERR_OR_NULL(dent)) {
|
if (IS_ERR_OR_NULL(dent)) {
|
||||||
NS_ERR("cannot create \"nandsim_wear_report\" debugfs entry\n");
|
NS_ERR("cannot create \"nandsim_wear_report\" debugfs entry\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue