dect
/
linux-2.6
Archived
13
0
Fork 0

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: Axel Lin <axel.lin@ingics.com>
Acked-by: "G.Shark Jeong" <gshark.jeong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Axel Lin 2012-12-17 16:00:59 -08:00 committed by Linus Torvalds
parent 2c114cb4ed
commit fb08cd9b11
1 changed files with 1 additions and 1 deletions

View File

@ -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,