Commit 389bc38e authored by Guenter Roeck's avatar Guenter Roeck

hwmon: (iio_hwmon) Replace S_<PERMS> with octal values

Replace S_<PERMS> with octal values.

The conversion was done automatically with coccinelle. The semantic patches
and the scripts used to generate this commit log are available at
https://github.com/groeck/coccinelle-patches/hwmon/.

This patch does not introduce functional changes. It was verified by
compiling the old and new files and comparing text and data sizes.
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 09cb4161
...@@ -129,7 +129,7 @@ static int iio_hwmon_probe(struct platform_device *pdev) ...@@ -129,7 +129,7 @@ static int iio_hwmon_probe(struct platform_device *pdev)
return -ENOMEM; return -ENOMEM;
a->dev_attr.show = iio_hwmon_read_val; a->dev_attr.show = iio_hwmon_read_val;
a->dev_attr.attr.mode = S_IRUGO; a->dev_attr.attr.mode = 0444;
a->index = i; a->index = i;
st->attrs[i] = &a->dev_attr.attr; st->attrs[i] = &a->dev_attr.attr;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment