greybus: lights: remove sync operation and work queue
authorRui Miguel Silva <rui.silva@linaro.org>
Tue, 12 Jan 2016 14:35:49 +0000 (14:35 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 13 Jan 2016 23:27:20 +0000 (15:27 -0800)
commit9c06c6a2b9ec4cfa78a4cf5ab123bfca0285e083
treed31605b0e0478b72294c3cae3380ae874e7bbab5
parentb827e1137ca9b495f10f3215ed6dd6ff738f0c81
greybus: lights: remove sync operation and work queue

In kernel v4.5 there is a change in LED api, which remove the need for
individual work queue and rename the set_sync operation to set_blocking.
This patch add the handling of this case and avoid compilation failure
for this kernel versions.

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