]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/video/backlight/lm3639_bl.c: fix up world writable sysfs file
authorAxel Lin <axel.lin@ingics.com>
Sat, 3 Nov 2012 00:42:47 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 8 Nov 2012 04:08:49 +0000 (15:08 +1100)
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>
drivers/video/backlight/lm3639_bl.c

index 585949b570550fd5e681b23a2564f8f65eb8f83a..6f7a20ebc1a3884f82f3e03c66aeb1052d15fa92 100644 (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,