aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorFrank Rowand <frank.rowand@sony.com>2017-06-21 12:20:03 -0700
committerRob Herring <robh@kernel.org>2017-06-22 11:16:44 -0500
commit7ace5f4806e895b2227f3ebb00d1fe24f60596c4 (patch)
treeab523f567982afeac6cfed19a515878eae2384bd /drivers/of
parentof: make __of_attach_node() static (diff)
downloadlinux-dev-7ace5f4806e895b2227f3ebb00d1fe24f60596c4.tar.xz
linux-dev-7ace5f4806e895b2227f3ebb00d1fe24f60596c4.zip
of: be consistent in form of file mode
checkpatch whined about using S_IRUGO instead of octal equivalent when adding phandle sysfs code, so used octal in that pending patch. Change other instances of the S_* constants in the same file to the octal form. Signed-off-by: Frank Rowand <frank.rowand@sony.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 28d5f53bc631..974d51269a02 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -155,7 +155,7 @@ int __of_add_property_sysfs(struct device_node *np, struct property *pp)
sysfs_bin_attr_init(&pp->attr);
pp->attr.attr.name = safe_name(&np->kobj, pp->name);
- pp->attr.attr.mode = secure ? S_IRUSR : S_IRUGO;
+ pp->attr.attr.mode = secure ? 0400 : 0444;
pp->attr.size = secure ? 0 : pp->length;
pp->attr.read = of_node_property_read;