Skip to content

RFC leds: Add led_mc_set_brightness() and led_mc_trigger_event() functions

Hans de Goede linux-leds 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2leds: core: Add led_mc_set_brightness() functiondrivers/leds/led-class-multicolor.c drivers/leds/led-core.c include/linux/leds.h+52 -00 replies
2/2leds: trigger: Add led_mc_trigger_event() functiondrivers/leds/led-triggers.c include/linux/leds.h+26 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJacek Anaszewski
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC 0/2] leds: Add led_mc_set_brightness() and led_mc_trigger_event() functions

Hi All,

Here is a patch-series adding led_mc_set_brightness() and led_mc_trigger_event() functions for changing multi-color LED colors from inside the kernel.

This is a preparation series for adding a new trigger to drivers/power/supply/power_supply_leds.c which changes the color of a RGB LED depending on if the battery is discharging (LED off) charging (LED red) or full (LED green)

This is marked as RFC since the power_supply_leds.c changes have not been written yet and as such this is compile-tested only atm. The main goal of this RFC is to gather review feedback on the chosen approach in these 2 patches.

Regards,

Hans

Hans de Goede (2):
leds: core: Add led_mc_set_brightness() function
leds: trigger: Add led_mc_trigger_event() function

 drivers/leds/led-class-multicolor.c |  1 +
 drivers/leds/led-core.c             | 31 +++++++++++++++++++++++++++++
 drivers/leds/led-triggers.c         | 20 +++++++++++++++++++
 include/linux/leds.h                | 26 ++++++++++++++++++++++++
 4 files changed, 78 insertions(+)
Signature · 1 line
2.43.2