diff options
author | Axel Lin <axel.lin@ingics.com> | 2012-10-29 01:41:46 -0700 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2012-11-26 14:28:50 -0800 |
commit | 5cce0105c8d07d3bd5f578c77d273e1a1e09f157 (patch) | |
tree | 533f54f5458054fa1e5db3cfb8b76ccce26b9a50 /drivers/leds | |
parent | 5bbf150cca196cb973e14d0a80508ba7f588dfd1 (diff) | |
download | linux-3.10-5cce0105c8d07d3bd5f578c77d273e1a1e09f157.tar.gz linux-3.10-5cce0105c8d07d3bd5f578c77d273e1a1e09f157.tar.bz2 linux-3.10-5cce0105c8d07d3bd5f578c77d273e1a1e09f157.zip |
leds: lm3642: Fix up world writable sysfs files
We don't need these sysfs files to be world writable or group writable.
These files are write-only, change them 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: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/leds-lm3642.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/leds/leds-lm3642.c b/drivers/leds/leds-lm3642.c index b69acac6d71..83fc7d70da1 100644 --- a/drivers/leds/leds-lm3642.c +++ b/drivers/leds/leds-lm3642.c @@ -207,7 +207,7 @@ out_strtoint: return ret; } -static DEVICE_ATTR(torch_pin, 0666, NULL, lm3642_torch_pin_store); +static DEVICE_ATTR(torch_pin, S_IWUSR, NULL, lm3642_torch_pin_store); static void lm3642_deferred_torch_brightness_set(struct work_struct *work) { @@ -264,7 +264,7 @@ out_strtoint: return ret; } -static DEVICE_ATTR(strobe_pin, 0666, NULL, lm3642_strobe_pin_store); +static DEVICE_ATTR(strobe_pin, S_IWUSR, NULL, lm3642_strobe_pin_store); static void lm3642_deferred_strobe_brightness_set(struct work_struct *work) { |