Skip to content

Commit acec3f6

Browse files
andy-shevrafaeljw
authored andcommitted
ACPI: proc: Prefer to use octal permission
Octal permissions are preferred over the symbolics ones for readbility. This ceases warning message pointed by checkpatch. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20250612201321.3536493-6-andriy.shevchenko@linux.intel.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 86dc11c commit acec3f6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/acpi/proc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,5 @@ static const struct proc_ops acpi_system_wakeup_device_proc_ops = {
139139
void __init acpi_sleep_proc_init(void)
140140
{
141141
/* 'wakeup device' [R/W] */
142-
proc_create("wakeup", S_IFREG | S_IRUGO | S_IWUSR,
143-
acpi_root_dir, &acpi_system_wakeup_device_proc_ops);
142+
proc_create("wakeup", 0644, acpi_root_dir, &acpi_system_wakeup_device_proc_ops);
144143
}

0 commit comments

Comments
 (0)