From: Axel Lin Date: Thu, 29 Nov 2012 03:18:28 +0000 (+1100) Subject: drivers/video/backlight/lm3639_bl.c: fix up world writable sysfs file X-Git-Tag: next-20121205~1^2~172 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a4291385e828b59c12e423cd81b2b06d9be4a7ca;p=karo-tx-linux.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 --- diff --git a/drivers/video/backlight/lm3639_bl.c b/drivers/video/backlight/lm3639_bl.c index b0e1e8ba4d9f..7ab2d2a04e41 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,