mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
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>
This commit is contained in:
parent
3651c4b904
commit
5bbf150cca
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ static ssize_t lm3556_indicator_pattern_store(struct device *dev,
|
||||||
return ret;
|
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 = {
|
static const struct regmap_config lm355x_regmap = {
|
||||||
.reg_bits = 8,
|
.reg_bits = 8,
|
||||||
|
|
Loading…
Reference in a new issue