diff options
| author | Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com> | 2026-06-25 19:07:34 +0200 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2026-07-21 22:28:11 +0200 |
| commit | b04510c3af6dd34b2e8dcf303114d77d5e443cac (patch) | |
| tree | 3b8df23753fcc1e0ac4393cca5769a3ab5e3f981 /include/linux | |
| parent | f97d9166048ddea147b5673330f9900bf08c725d (diff) | |
power: supply: leds: create triggers based on properties, not type
Currently only battery power supplies get triggers for other properties
and other supplies only get the online trigger.
This changes it to provide the triggers for any power supply depending
on what properties are available. Batteries will still get the same
triggers if the properties are there, but now other power supplies can
get the triggers too.
Signed-off-by: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
Link: https://patch.msgid.link/20260625-std-power-supply-triggers-v1-1-d80db570d329@beckhoff.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/power_supply.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 034800cd21da..9b4030802d78 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -350,7 +350,8 @@ struct power_supply { #endif #ifdef CONFIG_LEDS_TRIGGERS - struct led_trigger *trig; + struct led_trigger *charging_or_full_trig; + struct led_trigger *online_trig; struct led_trigger *charging_trig; struct led_trigger *full_trig; struct led_trigger *charging_blink_full_solid_trig; |
