提交 569762ef 编写于 作者: A Axel Lin 提交者: Richard Purdie

leds: led-class: set permissions on max_brightness file to 0444

max_brightness is not writable, thus set permissions to 0444.
Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Signed-off-by: NRichard Purdie <rpurdie@linux.intel.com>
上级 2146325d
...@@ -74,7 +74,7 @@ static ssize_t led_max_brightness_show(struct device *dev, ...@@ -74,7 +74,7 @@ static ssize_t led_max_brightness_show(struct device *dev,
static struct device_attribute led_class_attrs[] = { static struct device_attribute led_class_attrs[] = {
__ATTR(brightness, 0644, led_brightness_show, led_brightness_store), __ATTR(brightness, 0644, led_brightness_show, led_brightness_store),
__ATTR(max_brightness, 0644, led_max_brightness_show, NULL), __ATTR(max_brightness, 0444, led_max_brightness_show, NULL),
#ifdef CONFIG_LEDS_TRIGGERS #ifdef CONFIG_LEDS_TRIGGERS
__ATTR(trigger, 0644, led_trigger_show, led_trigger_store), __ATTR(trigger, 0644, led_trigger_show, led_trigger_store),
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册