]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
parisc: Replace symbolic permissions with octal permissions
authorJinchao Wang <wjc@cdjrlc.com>
Sat, 26 Jun 2021 10:20:52 +0000 (18:20 +0800)
committerHelge Deller <deller@gmx.de>
Mon, 30 Aug 2021 08:18:24 +0000 (10:18 +0200)
Resolve following checkpatch issue,
Replace symbolic permissions with octal permissions

Signed-off-by: Jinchao Wang <wjc@cdjrlc.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/parisc/led.c

index 36c6613f7a36b7869f0dce1945700abb6b06ee61..cf91cb024be304307485a567177826ded6022fd3 100644 (file)
@@ -250,14 +250,14 @@ static int __init led_create_procfs(void)
 
        if (!lcd_no_led_support)
        {
-               ent = proc_create_data("led", S_IRUGO|S_IWUSR, proc_pdc_root,
+               ent = proc_create_data("led", 0644, proc_pdc_root,
                                        &led_proc_ops, (void *)LED_NOLCD); /* LED */
                if (!ent) return -1;
        }
 
        if (led_type == LED_HASLCD)
        {
-               ent = proc_create_data("lcd", S_IRUGO|S_IWUSR, proc_pdc_root,
+               ent = proc_create_data("lcd", 0644, proc_pdc_root,
                                        &led_proc_ops, (void *)LED_HASLCD); /* LCD */
                if (!ent) return -1;
        }