diff options
author | Kris Huang <huang_kris@projectara.com> | 2016-08-09 11:28:37 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-08-10 15:47:30 +0200 |
commit | 811b1f58610d219610c223a1d63031171a079a7c (patch) | |
tree | 538ca6b62053eae8d10106715ae22aacbfa20b9f /drivers/staging/greybus/light.c | |
parent | greybus: greybus-driver: Add intf_oops operation (diff) | |
download | linux-dev-811b1f58610d219610c223a1d63031171a079a7c.tar.xz linux-dev-811b1f58610d219610c223a1d63031171a079a7c.zip |
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>
Diffstat (limited to 'drivers/staging/greybus/light.c')
-rw-r--r-- | drivers/staging/greybus/light.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/staging/greybus/light.c b/drivers/staging/greybus/light.c index fb41b0b1a98c..a57d59339bd6 100644 --- a/drivers/staging/greybus/light.c +++ b/drivers/staging/greybus/light.c @@ -172,7 +172,6 @@ static int __gb_lights_flash_brightness_set(struct gb_channel *channel) } #endif /* !LED_HAVE_FLASH */ -#ifdef LED_HAVE_GROUPS static int gb_lights_color_set(struct gb_channel *channel, u32 color); static int gb_lights_fade_set(struct gb_channel *channel); @@ -378,13 +377,6 @@ static int gb_lights_color_set(struct gb_channel *channel, u32 color) return ret; } -#else /* LED_HAVE_GROUPS */ -static int channel_attr_groups_set(struct gb_channel *channel, - struct led_classdev *cdev) -{ - return 0; -} -#endif /* !LED_HAVE_GROUPS */ static int __gb_lights_led_brightness_set(struct gb_channel *channel) { |