leds: Introduce userspace LED class driver
authorDavid Lechner <david@lechnology.com>
Fri, 9 Sep 2016 16:49:36 +0000 (11:49 -0500)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Mon, 12 Sep 2016 20:02:55 +0000 (22:02 +0200)
commit40d2db7cfced15c98c387c01b6535f5c7fe83b0a
treea014486fb306bf40e5780e184f5b023d98afc856
parent2cbbdf9e2b5643e796370298b9357ded5a4b514a
leds: Introduce userspace LED class driver

This driver creates a userspace LED class driver similar to uinput.

New LED class devices 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 LED 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]
This page took 0.028312 seconds and 5 git commands to generate.