mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-08-19 02:01:05 +00:00
leds: leds-pwm: Fix LED blink failure
Set the blink-variable to a proper state after blinking is complete. Change-Id: I8e5649faddf778ebe33ad8c638c4ab4362ff9364 Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
This commit is contained in:
@ -183,6 +183,7 @@ static int led_pwm_set(struct led_classdev *led_cdev,
|
||||
duty = led_data->period - duty;
|
||||
|
||||
led_data->duty = duty;
|
||||
led_data->blinking = false;
|
||||
|
||||
__led_pwm_set(led_data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user