From: Axel Lin Date: Tue, 18 Dec 2012 00:00:59 +0000 (-0800) Subject: drivers/video/backlight/lm3639_bl.c: fix up world writable sysfs file X-Git-Tag: v3.12-rc1~1741^2~126 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb08cd9b111c6a922f468ef5e33acc67eb91d40b;p=kernel%2Fkernel-generic.git 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 Acked-by: "G.Shark Jeong" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/backlight/lm3639_bl.c b/drivers/video/backlight/lm3639_bl.c index b0e1e8b..7ab2d2a 100644 --- a/drivers/video/backlight/lm3639_bl.c +++ b/drivers/video/backlight/lm3639_bl.c @@ -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,