diff options
author | Frank Rowand <frank.rowand@sony.com> | 2017-06-21 15:20:03 -0400 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2017-06-22 12:16:44 -0400 |
commit | 7ace5f4806e895b2227f3ebb00d1fe24f60596c4 (patch) | |
tree | ab523f567982afeac6cfed19a515878eae2384bd /drivers/of | |
parent | 249969514e23b07d1872fc614bb5cfd3577bde35 (diff) |
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.c | 2 |
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) | |||
155 | 155 | ||
156 | sysfs_bin_attr_init(&pp->attr); | 156 | sysfs_bin_attr_init(&pp->attr); |
157 | pp->attr.attr.name = safe_name(&np->kobj, pp->name); | 157 | pp->attr.attr.name = safe_name(&np->kobj, pp->name); |
158 | pp->attr.attr.mode = secure ? S_IRUSR : S_IRUGO; | 158 | pp->attr.attr.mode = secure ? 0400 : 0444; |
159 | pp->attr.size = secure ? 0 : pp->length; | 159 | pp->attr.size = secure ? 0 : pp->length; |
160 | pp->attr.read = of_node_property_read; | 160 | pp->attr.read = of_node_property_read; |
161 | 161 | ||