greybus: lights: fix check for configured lights
authorRui Miguel Silva <rui.silva@linaro.org>
Wed, 17 Feb 2016 14:32:53 +0000 (14:32 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 17 Feb 2016 23:24:09 +0000 (15:24 -0800)
commitc6ad27a98ce5f9718c7235cf02de2055897f56d5
tree82e169c61e626fb81872c840650b94f0d2ccc120
parent137f717942c9cff82484ee90647881d9c524178f
greybus: lights: fix check for configured lights

The validation for a complete configured light is wrong and it is
reworked to make sure that only when the light is ready, will handle
request events.

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