mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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>
This commit is contained in:
parent
2146325df2
commit
569762ef3d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue