提交 5cce0105 编写于 作者: A Axel Lin 提交者: Bryan Wu

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: NAxel Lin <axel.lin@ingics.com>
Acked-by: NG.Shark Jeong <gshark.jeong@gmail.com>
Signed-off-by: NBryan Wu <cooloney@gmail.com>
上级 5bbf150c
......@@ -207,7 +207,7 @@ static ssize_t lm3642_torch_pin_store(struct device *dev,
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 @@ static ssize_t lm3642_strobe_pin_store(struct device *dev,
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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册