From: Axel Lin Date: Mon, 17 May 2010 00:48:28 +0000 (+0800) Subject: leds: led-class: set permissions on max_brightness file to 0444 X-Git-Tag: v3.0~4490^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=569762ef3dcf8fc5aecdb059d8c0741b90fe1d17;p=platform%2Fkernel%2Flinux-amlogic.git 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 Signed-off-by: Richard Purdie --- diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c index 69e7d86..2606600 100644 --- a/drivers/leds/led-class.c +++ b/drivers/leds/led-class.c @@ -74,7 +74,7 @@ static ssize_t led_max_brightness_show(struct device *dev, static struct device_attribute led_class_attrs[] = { __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 __ATTR(trigger, 0644, led_trigger_show, led_trigger_store), #endif