Skip to content

Commit 569762e

Browse files
AxelLinrpurdie
authored andcommitted
leds: led-class: set permissions on max_brightness file to 0444
max_brightness is not writable, thus set permissions to 0444. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
1 parent 2146325 commit 569762e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/leds/led-class.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static ssize_t led_max_brightness_show(struct device *dev,
7474

7575
static struct device_attribute led_class_attrs[] = {
7676
__ATTR(brightness, 0644, led_brightness_show, led_brightness_store),
77-
__ATTR(max_brightness, 0644, led_max_brightness_show, NULL),
77+
__ATTR(max_brightness, 0444, led_max_brightness_show, NULL),
7878
#ifdef CONFIG_LEDS_TRIGGERS
7979
__ATTR(trigger, 0644, led_trigger_show, led_trigger_store),
8080
#endif

0 commit comments

Comments
 (0)