mirror of
https://github.com/joel16/android_kernel_sony_msm8994.git
synced 2025-02-25 07:53:26 +00:00
drivers: leds: leds-qpnp: fix led blinking colors
At blinking start, flush_work seemingly doesn't empty the workqueue properly, so an additional cancel_work_sync call is needed. This fixes the wrong colors of blinking leds. Change-Id: Ib926774a7b87866ad97993fcfb98eb3d66d66641 Signed-off-by: airlessproject <vlatko.mitreski@gmail.com>
This commit is contained in:
parent
6b6828f6ba
commit
88aa0f6d13
@ -2704,6 +2704,7 @@ static void led_blink(struct qpnp_led_data *led,
|
||||
{
|
||||
int rc;
|
||||
|
||||
cancel_work_sync(&led->work);
|
||||
flush_work(&led->work);
|
||||
mutex_lock(&led->lock);
|
||||
if (pwm_cfg->use_blink) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user