diff options
author | Stas Sergeev <[email protected]> | 2015-05-14 08:24:02 -0700 |
---|---|---|
committer | Bryan Wu <[email protected]> | 2015-05-25 13:26:47 -0700 |
commit | 76931edd54f87d1e49536cd068df4783fae24d45 (patch) | |
tree | b9156a89d62a210dccc24f958a9b34be0891cd47 /lib/memory-notifier-error-inject.c | |
parent | 7ff6b23251955dc1cf108eb4619b4a2eeac75bca (diff) |
leds: fix brightness changing when software blinking is active
The following sequence:
echo timer >/sys/class/leds/<name>/trigger
echo 1 >/sys/class/leds/<name>/brightness
should change the ON brightness for blinking.
The function led_set_brightness() was mistakenly initiating the
delayed blink stop procedure, which resulted in no blinking with
the timer trigger still active.
This patch fixes the problem by changing led_set_brightness()
to not initiate the delayed blink stop when brightness is not 0.
CC: Richard Purdie <[email protected]>
CC: Kyungmin Park <[email protected]>
CC: [email protected]
CC: [email protected]
Acked-by: Jacek Anaszewski <[email protected]>
Signed-off-by: Stas Sergeev <[email protected]>
Signed-off-by: Bryan Wu <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions