diff options
author | Axel Lin <axel.lin@ingics.com> | 2012-12-17 19:00:59 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-17 20:15:16 -0500 |
commit | fb08cd9b111c6a922f468ef5e33acc67eb91d40b (patch) | |
tree | 2b557d60f599ca8a4280e721f1dc52c8122c8c2b /drivers/video | |
parent | 2c114cb4edb741822ea48e80be8c525032206e9a (diff) |
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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/backlight/lm3639_bl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: | |||
214 | 214 | ||
215 | } | 215 | } |
216 | 216 | ||
217 | static DEVICE_ATTR(bled_mode, 0666, NULL, lm3639_bled_mode_store); | 217 | static DEVICE_ATTR(bled_mode, S_IWUSR, NULL, lm3639_bled_mode_store); |
218 | 218 | ||
219 | /* torch */ | 219 | /* torch */ |
220 | static void lm3639_torch_brightness_set(struct led_classdev *cdev, | 220 | static void lm3639_torch_brightness_set(struct led_classdev *cdev, |