Skip to content

Commit

Permalink
leds: lm355x: Fix up world writable sysfs file
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Bryan Wu committed Nov 26, 2012
1 parent 3651c4b commit 5bbf150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/leds/leds-lm355x.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ static ssize_t lm3556_indicator_pattern_store(struct device *dev,
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,
Expand Down

0 comments on commit 5bbf150

Please sign in to comment.