Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb08cd9b authored by Axel Lin's avatar Axel Lin Committed by Linus Torvalds
Browse files

drivers/video/backlight/lm3639_bl.c: fix up world writable sysfs file



We don't need the sysfs file to be world writable or group writable.
This file is write-only, change it to S_IWUSR (0200).

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatar"G.Shark Jeong" <gshark.jeong@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2c114cb4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -214,7 +214,7 @@ out_input:

}

static DEVICE_ATTR(bled_mode, 0666, NULL, lm3639_bled_mode_store);
static DEVICE_ATTR(bled_mode, S_IWUSR, NULL, lm3639_bled_mode_store);

/* torch */
static void lm3639_torch_brightness_set(struct led_classdev *cdev,