summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-lm355x.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2012-10-29 01:40:21 -0700
committerBryan Wu <cooloney@gmail.com>2012-11-26 14:28:49 -0800
commit5bbf150cca196cb973e14d0a80508ba7f588dfd1 (patch)
tree6b3918800bf49068060811160644ee26db0dd19c /drivers/leds/leds-lm355x.c
parent3651c4b904b005fcba757c529184e8c3c596cb05 (diff)
downloadlinux-5bbf150cca196cb973e14d0a80508ba7f588dfd1.tar.gz
linux-5bbf150cca196cb973e14d0a80508ba7f588dfd1.tar.bz2
linux-5bbf150cca196cb973e14d0a80508ba7f588dfd1.zip
leds: lm355x: 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: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds/leds-lm355x.c')
-rw-r--r--drivers/leds/leds-lm355x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-lm355x.c b/drivers/leds/leds-lm355x.c
index 8f4e8e21ddb5..6bc029255e5b 100644
--- a/drivers/leds/leds-lm355x.c
+++ b/drivers/leds/leds-lm355x.c
@@ -411,7 +411,7 @@ out:
return ret;
}
-static DEVICE_ATTR(pattern, 0666, NULL, lm3556_indicator_pattern_store);
+static DEVICE_ATTR(pattern, S_IWUSR, NULL, lm3556_indicator_pattern_store);
static const struct regmap_config lm355x_regmap = {
.reg_bits = 8,