projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
initramfs: break loop when decompression finishes
[platform/kernel/linux-rpi.git]
/
drivers
/
leds
/
leds-pwm.c
diff --git
a/drivers/leds/leds-pwm.c
b/drivers/leds/leds-pwm.c
index
419b710
..
2b3bf13
100644
(file)
--- a/
drivers/leds/leds-pwm.c
+++ b/
drivers/leds/leds-pwm.c
@@
-53,7
+53,7
@@
static int led_pwm_set(struct led_classdev *led_cdev,
duty = led_dat->pwmstate.period - duty;
led_dat->pwmstate.duty_cycle = duty;
duty = led_dat->pwmstate.period - duty;
led_dat->pwmstate.duty_cycle = duty;
- led_dat->pwmstate.enabled =
duty > 0
;
+ led_dat->pwmstate.enabled =
true
;
return pwm_apply_state(led_dat->pwm, &led_dat->pwmstate);
}
return pwm_apply_state(led_dat->pwm, &led_dat->pwmstate);
}