]> git.karo-electronics.de Git - karo-tx-linux.git/commit
greybus: lights: enable multi color LED support
authorKris Huang <huang_kris@projectara.com>
Tue, 9 Aug 2016 03:28:37 +0000 (11:28 +0800)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 10 Aug 2016 13:47:30 +0000 (15:47 +0200)
commit811b1f58610d219610c223a1d63031171a079a7c
tree538ca6b62053eae8d10106715ae22aacbfa20b9f
parent57fa2de1e5671c3632c5666ce08e03f1e3dc0242
greybus: lights: enable multi color LED support

A backport (commit 79c4de08c0e5a26b04a4ac9e6543dad6379f0b40) was
applied in kernel which adding attribute-group support in led-class.
Remove the LED_HAVE_GROUPS flag check entirely that allow led
drivers to create custom attributes like color/fade_in/fade_out.

Testing Done: Compiled and verified on EVT2 and gpbridge-test module
              with device class daughter board.

Signed-off-by: Kris Huang <huang_kris@projectara.com>
Reviewed-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/kernel_ver.h
drivers/staging/greybus/light.c