diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2025-06-12 23:11:29 +0300 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-06-26 21:08:13 +0200 |
| commit | acec3f6aa4f2bd9287a118f97ffa4e57c22f6344 (patch) | |
| tree | 48d3e1f692c9a56022e88aab2e906665f43636af /drivers/acpi/proc.c | |
| parent | ACPI: proc: Use str_enabled_disabled() helper (diff) | |
| download | linux-acec3f6aa4f2bd9287a118f97ffa4e57c22f6344.tar.gz linux-acec3f6aa4f2bd9287a118f97ffa4e57c22f6344.zip | |
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>
Diffstat (limited to 'drivers/acpi/proc.c')
| -rw-r--r-- | drivers/acpi/proc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/proc.c b/drivers/acpi/proc.c index 440150c67ba6..c08ead07252b 100644 --- a/drivers/acpi/proc.c +++ b/drivers/acpi/proc.c @@ -139,6 +139,5 @@ static const struct proc_ops acpi_system_wakeup_device_proc_ops = { void __init acpi_sleep_proc_init(void) { /* 'wakeup device' [R/W] */ - proc_create("wakeup", S_IFREG | S_IRUGO | S_IWUSR, - acpi_root_dir, &acpi_system_wakeup_device_proc_ops); + proc_create("wakeup", 0644, acpi_root_dir, &acpi_system_wakeup_device_proc_ops); } |
