projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2146325
)
leds: led-class: set permissions on max_brightness file to 0444
author
Axel Lin
<axel.lin@gmail.com>
Mon, 17 May 2010 00:48:28 +0000
(08:48 +0800)
committer
Richard Purdie
<rpurdie@linux.intel.com>
Wed, 26 May 2010 12:07:55 +0000
(13:07 +0100)
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>
drivers/leds/led-class.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/leds/led-class.c
b/drivers/leds/led-class.c
index 69e7d86a5143e36d2db68275214e4af539777be4..2606600765079f946501717888a411eef20ac3fd 100644
(file)
--- 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, 0
6
44, led_max_brightness_show, NULL),
+ __ATTR(max_brightness, 0
4
44, led_max_brightness_show, NULL),
#ifdef CONFIG_LEDS_TRIGGERS
__ATTR(trigger, 0644, led_trigger_show, led_trigger_store),
#endif