projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f35a33
)
Revert "leds: save the delay values after a successful call to blink_set()"
author
Johan Hovold
<
[email protected]
>
Tue, 15 Nov 2011 22:35:52 +0000
(14:35 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 16 Nov 2011 00:41:50 +0000
(22:41 -0200)
Revert commit
6123b0e274503a0d3588e84fbe07c9aa01bfaf5d
.
The problem this patch intends to solve has alreadqy been fixed by
commit
7a5caabd090b
("drivers/leds/ledtrig-timer.c: fix broken sysfs
delay handling").
Signed-off-by: Johan Hovold <
[email protected]
>
Cc: Antonio Ospite <
[email protected]
>
Cc: Johannes Berg <
[email protected]
>
Cc: Richard Purdie <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/leds/led-class.c
patch
|
blob
|
history
diff --git
a/drivers/leds/led-class.c
b/drivers/leds/led-class.c
index 661b692573e7790e7d75a4b815cd7741dfe47c74..6d5628bb060115d6e3f032210f9bc862a0ef397b 100644
(file)
--- a/
drivers/leds/led-class.c
+++ b/
drivers/leds/led-class.c
@@
-270,11
+270,8
@@
void led_blink_set(struct led_classdev *led_cdev,
del_timer_sync(&led_cdev->blink_timer);
if (led_cdev->blink_set &&
- !led_cdev->blink_set(led_cdev, delay_on, delay_off)) {
- led_cdev->blink_delay_on = *delay_on;
- led_cdev->blink_delay_off = *delay_off;
+ !led_cdev->blink_set(led_cdev, delay_on, delay_off))
return;
- }
/* blink with 1 Hz as default if nothing specified */
if (!*delay_on && !*delay_off)