| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * LEDs triggers for power supply class |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 6 | 7 | * Copyright © 2003 Ian Molton <spyro@f2s.com> |
|---|
| 7 | 8 | * |
|---|
| 8 | 9 | * Modified: 2004, Oct Szabolcs Gyurko |
|---|
| 9 | | - * |
|---|
| 10 | | - * You may use this code as per GPL version 2 |
|---|
| 11 | 10 | */ |
|---|
| 12 | 11 | |
|---|
| 13 | 12 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 35 | 34 | led_trigger_event(psy->charging_full_trig, LED_FULL); |
|---|
| 36 | 35 | led_trigger_event(psy->charging_trig, LED_OFF); |
|---|
| 37 | 36 | led_trigger_event(psy->full_trig, LED_FULL); |
|---|
| 38 | | - led_trigger_event(psy->charging_blink_full_solid_trig, |
|---|
| 39 | | - LED_FULL); |
|---|
| 37 | + /* Going from blink to LED on requires a LED_OFF event to stop blink */ |
|---|
| 38 | + led_trigger_event(psy->charging_blink_full_solid_trig, LED_OFF); |
|---|
| 39 | + led_trigger_event(psy->charging_blink_full_solid_trig, LED_FULL); |
|---|
| 40 | 40 | break; |
|---|
| 41 | 41 | case POWER_SUPPLY_STATUS_CHARGING: |
|---|
| 42 | 42 | led_trigger_event(psy->charging_full_trig, LED_FULL); |
|---|