summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2020-05-25 11:58:36 +0300
committerMiquel Raynal <miquel.raynal@bootlin.com>2020-05-31 11:53:37 +0300
commitb81fa3c45e5c50af34777e0d383c6c16798d918c (patch)
tree5d3e2035ee8e149d26e3cb4d54130e07eb3692cb /drivers/mtd
parent6be834c667d3075a40dbbbd54ee211b8177e1530 (diff)
downloadlinux-b81fa3c45e5c50af34777e0d383c6c16798d918c.tar.xz
mtd: rawnand: nandsim: Use octal permissions
Symbolic permissions 'S_IRUSR' are not preferred. Checkpatch.pl advises to use octal permissions '0400'. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20200525085851.17682-3-miquel.raynal@bootlin.com
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/raw/nandsim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/nandsim.c b/drivers/mtd/nand/raw/nandsim.c
index 0062e4fedcc0..ea46f7011a0f 100644
--- a/drivers/mtd/nand/raw/nandsim.c
+++ b/drivers/mtd/nand/raw/nandsim.c
@@ -508,7 +508,7 @@ static int nandsim_debugfs_create(struct nandsim *ns)
return 0;
}
- dent = debugfs_create_file("nandsim_wear_report", S_IRUSR, root, ns,
+ dent = debugfs_create_file("nandsim_wear_report", 0400, root, ns,
&nandsim_fops);
if (IS_ERR_OR_NULL(dent)) {
NS_ERR("cannot create \"nandsim_wear_report\" debugfs entry\n");