leds: Introduce userspace leds driver
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest3 patches 10 repliesIn review
- v31 patch 21 repliesSuperseded
- v21 patch 7 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 1 patch | 5 replies | Superseded |
Changes in v4 from the cover letter
* Use devm_led_classdev_register() instead of led_classdev_register()
* Clarified how to create multiple devices in documentation
* uledmon.c now uses blocking reads instead of poll()
* Add some sanity checking on user-provided device name to make sure it is not a directory name
* Reading from /dev/uleds allows any size read buffer - still only returns one byte regardless of size
* Reading from /dev/uleds blocks until the brightness is changed
* LEDS_MAX_NAME_SIZE is reduced to 64 to match existing name size limit
* New patch to use LEDS_MAX_NAME_SIZE in drivers/leds/led-class.c
* Moved example code to tool/leds/uledmon.c (new patch with Makefile)
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | leds: Introduce userspace leds driverDocumentation/ drivers/ drivers/ +3 more | +300 | 9 replies | |
| 2/3 | leds: Use macro for max device node name sizedrivers/ | +2 | 0 replies | |
| 3/3 | tools/leds: Add uledmon program for monitoring userspace LEDstools/ tools/ tools/ +1 more | +80 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [PATCH v4 0/3] leds: Introduce userspace leds driver
v2 changes:
* sort #includes
* fix typo in Kconfig
* Add Documentation text file
v3 changes:
* fix typos in docs
* rename "leds class" to "LED class" in docs
* rebase on linux-leds/for-next
v4 changes:
* Use devm_led_classdev_register() instead of led_classdev_register()
* Clarified how to create multiple devices in documentation
* uledmon.c now uses blocking reads instead of poll()
* Add some sanity checking on user-provided device name to make sure it is not a directory name
* Reading from /dev/uleds allows any size read buffer - still only returns one byte regardless of size
* Reading from /dev/uleds blocks until the brightness is changed
* LEDS_MAX_NAME_SIZE is reduced to 64 to match existing name size limit
* New patch to use LEDS_MAX_NAME_SIZE in drivers/leds/led-class.c
* Moved example code to tool/leds/uledmon.c (new patch with Makefile)
David Lechner (3):
leds: Introduce userspace leds driver
leds: Use macro for max device node name size tools/leds: Add uledmon program for monitoring userspace LEDs
Documentation/leds/uleds.txt | 36 +++++++ drivers/leds/Kconfig | 8 ++ drivers/leds/Makefile | 3 + drivers/leds/led-class.c | 3 +- drivers/leds/uleds.c | 230 +++++++++++++++++++++++++++++++++++++++++++ include/uapi/linux/Kbuild | 1 + include/uapi/linux/uleds.h | 23 +++++ tools/Makefile | 7 +- tools/leds/.gitignore | 1 + tools/leds/Makefile | 13 +++ tools/leds/uledmon.c | 62 ++++++++++++ 11 files changed, 383 insertions(+), 4 deletions(-) create mode 100644 Documentation/leds/uleds.txt create mode 100644 drivers/leds/uleds.c create mode 100644 include/uapi/linux/uleds.h create mode 100644 tools/leds/.gitignore create mode 100644 tools/leds/Makefile create mode 100644 tools/leds/uledmon.c
Signature · 1 line
2.7.4