aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/led-class.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-05-17 08:48:28 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-05-26 13:07:55 +0100
commit569762ef3dcf8fc5aecdb059d8c0741b90fe1d17 (patch)
treea8727ffae90156823faf2f43edb7bf478020e63e /drivers/leds/led-class.c
parentleds: leds-gpio: Change blink_set callback to be able to turn off blinking (diff)
downloadlinux-dev-569762ef3dcf8fc5aecdb059d8c0741b90fe1d17.tar.xz
linux-dev-569762ef3dcf8fc5aecdb059d8c0741b90fe1d17.zip
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>
Diffstat (limited to 'drivers/leds/led-class.c')
-rw-r--r--drivers/leds/led-class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c
index 69e7d86a5143..260660076507 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