staging: nvec: add LED support
authorIlya Petrov <ilya.muromec@gmail.com>
Tue, 27 Sep 2011 17:00:44 +0000 (19:00 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 30 Sep 2011 00:40:38 +0000 (17:40 -0700)
commit97cc26576fa2b0eb1aad1b29515bb0a32f86c45c
tree1c1aa0ce04a6ed04f1ed4fc2397aec5668c4905f
parent6dca320c8f16b464bb762494b509b2b02897054e
staging: nvec: add LED support

This patch adds support for LEDs connect to a nvec. A single brightness
property is exported to sysfs. LEDs are selected via bitfields in the
brightness value. Also the blinking behavior is selected through this
method. Vendors may use different values for different HW designs.

Signed-off-by: Ilya Petrov <ilya.muromec@gmail.com>
Signed-off-by: Marc Dietrich <marvin24@gmx.de>
[jak@jak-linux.org: Fixed checkpatch warnings]
Signed-off-by: Julian Andres Klode <jak@jak-linux.org>
Acked-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/nvec/Kconfig
drivers/staging/nvec/Makefile
drivers/staging/nvec/nvec.c
drivers/staging/nvec/nvec_kbd.c
drivers/staging/nvec/nvec_leds.c [new file with mode: 0644]