summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/iio_hwmon.c
diff options
context:
space:
mode:
authorGuenter Roeck2018-12-10 23:02:09 +0100
committerGuenter Roeck2019-02-18 23:23:29 +0100
commit389bc38eeb4aa8eddce1de6a0ac1937f518f2b02 (patch)
tree5f834e75e8774594553f034a6a8a2570dfdb89a5 /drivers/hwmon/iio_hwmon.c
parenthwmon: (ibmpex) Use permission specific SENSOR[_DEVICE]_ATTR variants (diff)
downloadkernel-qcow2-linux-389bc38eeb4aa8eddce1de6a0ac1937f518f2b02.tar.gz
kernel-qcow2-linux-389bc38eeb4aa8eddce1de6a0ac1937f518f2b02.tar.xz
kernel-qcow2-linux-389bc38eeb4aa8eddce1de6a0ac1937f518f2b02.zip
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: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/iio_hwmon.c')
-rw-r--r--drivers/hwmon/iio_hwmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/iio_hwmon.c b/drivers/hwmon/iio_hwmon.c
index eed66e533ee2..5c3c08449de7 100644
--- a/drivers/hwmon/iio_hwmon.c
+++ b/drivers/hwmon/iio_hwmon.c
@@ -129,7 +129,7 @@ static int iio_hwmon_probe(struct platform_device *pdev)
return -ENOMEM;
a->dev_attr.show = iio_hwmon_read_val;
- a->dev_attr.attr.mode = S_IRUGO;
+ a->dev_attr.attr.mode = 0444;
a->index = i;
st->attrs[i] = &a->dev_attr.attr;
}