mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-29 19:13:54 +00:00
hwmon: (asus_atk0110) 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. Cc: Luca Tettamanti <kronos.it@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
e98dd5388b
commit
b51c14c736
@ -799,16 +799,16 @@ static void atk_debugfs_init(struct atk_data *data)
|
|||||||
if (!d || IS_ERR(d))
|
if (!d || IS_ERR(d))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
f = debugfs_create_x32("id", S_IRUSR | S_IWUSR, d, &data->debugfs.id);
|
f = debugfs_create_x32("id", 0600, d, &data->debugfs.id);
|
||||||
if (!f || IS_ERR(f))
|
if (!f || IS_ERR(f))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
f = debugfs_create_file("gitm", S_IRUSR, d, data,
|
f = debugfs_create_file("gitm", 0400, d, data,
|
||||||
&atk_debugfs_gitm);
|
&atk_debugfs_gitm);
|
||||||
if (!f || IS_ERR(f))
|
if (!f || IS_ERR(f))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
f = debugfs_create_file("ggrp", S_IRUSR, d, data,
|
f = debugfs_create_file("ggrp", 0400, d, data,
|
||||||
&atk_debugfs_ggrp_fops);
|
&atk_debugfs_ggrp_fops);
|
||||||
if (!f || IS_ERR(f))
|
if (!f || IS_ERR(f))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user