lkml.org 
[lkml]   [2010]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] led-class: set permissions on max_brightness file to 0444
From
Date
On Mon, 2010-05-17 at 08:48 +0800, Axel Lin wrote:
> max_brightness is not writable, thus set permissions to 0444.
>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
> drivers/leds/led-class.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> 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

Queued in the leds tree, thanks.

Richard



\
 
 \ /
  Last update: 2010-05-26 13:31    [W:0.117 / U:0.836 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site