]> git.baikalelectronics.ru Git - kernel.git/commit
leds: don't disable blinking when writing the same value to delay_on or delay_off
authorRafal Prylowski <prylowski@metasoft.pl>
Mon, 28 May 2012 15:35:54 +0000 (23:35 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Tue, 12 Jun 2012 02:56:24 +0000 (10:56 +0800)
commit7a4b5568f4d79d8e685a36b5fea6cfe0cc175ec0
tree052b895fc8290e7756a3492fc1fada0c65cce808
parent9d9589669f49fdf7b8bb72594c6f0b793dbde4c9
leds: don't disable blinking when writing the same value to delay_on or delay_off

Function led_set_software_blink() assumes that blink timer is still running,
but commit a65c430300fa3dcdecff19c4271aed470c02b2f7 introduced disabling
of blink timer before each call to led_set_software_blink().

Correct led_software_blink():
1) remove protection against reprogramming blink timer to the same values,
   because it only disables blinking now,
2) remove unnecessary call to led_stop_software_blink().

Signed-off-by: Rafal Prylowski <prylowski@metasoft.pl>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
drivers/leds/led-core.c