Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: (scpi-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>

+2 -2
+2 -2
drivers/hwmon/scpi-hwmon.c
··· 226 226 227 227 sensor->scale = scale[sensor->info.class]; 228 228 229 - sensor->dev_attr_input.attr.mode = S_IRUGO; 229 + sensor->dev_attr_input.attr.mode = 0444; 230 230 sensor->dev_attr_input.show = scpi_show_sensor; 231 231 sensor->dev_attr_input.attr.name = sensor->input; 232 232 233 - sensor->dev_attr_label.attr.mode = S_IRUGO; 233 + sensor->dev_attr_label.attr.mode = 0444; 234 234 sensor->dev_attr_label.show = scpi_show_label; 235 235 sensor->dev_attr_label.attr.name = sensor->label; 236 236