leds: Introduce userspace LED class driver
authorDavid Lechner <david@lechnology.com>
Fri, 16 Sep 2016 19:16:48 +0000 (14:16 -0500)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Tue, 22 Nov 2016 11:07:02 +0000 (12:07 +0100)
commite381322b0190c1253d347de3f28b5c37756fb651
tree792a2bc1695cae581e152565e95127405424f5c6
parent1001354ca34179f3db924eb66672442a173147dc
leds: Introduce userspace LED class driver

This driver creates a userspace leds driver similar to uinput.

New LEDs are created by opening /dev/uleds and writing a uleds_user_dev
struct. A new LED class device is registered with the name given in the
struct. Reading will return a single byte that is the current brightness.
The poll() syscall is also supported. It will be triggered whenever the
brightness changes. Closing the file handle to /dev/uleds will remove
the leds class device.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Documentation/leds/uleds.txt [new file with mode: 0644]
drivers/leds/Kconfig
drivers/leds/Makefile
drivers/leds/uleds.c [new file with mode: 0644]
include/uapi/linux/Kbuild
include/uapi/linux/uleds.h [new file with mode: 0644]