3 * On/off LEDs should have max_brightness of 1
4 * Get rid of enum led_brightness
6 It is really an integer, as maximum is configurable. Get rid of it, or
7 make it into typedef or something.
9 * Review atomicity requirements in LED subsystem
11 Calls that may and that may not block are mixed in same structure, and
12 semantics is sometimes non-intuitive. (For example blink callback may
13 not sleep.) Review the requirements for any bugs and document them
16 * LED names are still a mess
18 No two LEDs have same name, so the names are probably unusable for the
19 userland. Nudge authors into creating common LED names for common
22 ? Perhaps check for known LED names during boot, and warn if there are
25 * Split drivers into subdirectories
27 The number of drivers is getting big, and driver for on/off LED on a
28 i/o port is really quite different from camera flash LED, which is
29 really different from driver for RGB color LED that can run its own
30 microcode. Split the drivers somehow.
32 * Figure out what to do with RGB leds
34 Multicolor is a bit too abstract. Yes, we can have
35 Green-Magenta-Ultraviolet LED, but so far all the LEDs we support are
36 RGB, and not even RGB-White or RGB-Yellow variants emerged.
38 Multicolor is not a good fit for RGB LED. It does not really know
39 about LED color. In particular, there's no way to make LED "white".
41 Userspace is interested in knowing "this LED can produce arbitrary
42 color", which not all multicolor LEDs can.
44 Proposal: let's add "rgb" to led_colors in drivers/leds/led-core.c,
45 add corresponding device tree defines, and use that, instead of
46 multicolor for RGB LEDs.
48 We really need to do that now; "white" stuff can wait.
50 RGB LEDs are quite common, and it would be good to be able to turn LED
51 white and to turn it into any arbitrary color. It is essential that
52 userspace is able to set arbitrary colors, and it might be good to
53 have that ability from kernel, too... to allow full-color triggers.
55 * Command line utility to manipulate the LEDs?
57 /sys interface is not really suitable to use by hand, should we have
58 an utility to perform LED control?
60 In particular, LED names are still a mess (see above) and utility
61 could help there by presenting both old and new names while we clean
64 In future, I'd like utility to accept both old and new names while we
67 It would be also nice to have useful listing mode -- name, type,
68 current brightness/trigger...
70 In future, it would be good to be able to set rgb led to particular
73 And probably user-friendly interface to access LEDs for particular
74 ethernet interface would be nice.