greybus: svc: pwrmon: validate svc protocol op status when getting rail names
authorDavid Lin <dtwlin@google.com>
Wed, 8 Jun 2016 07:39:00 +0000 (09:39 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 8 Jun 2016 17:21:34 +0000 (10:21 -0700)
commit8fb76c3cfd5c54cb0d8713436d480a8062217d5c
tree7e332a9bdfc3c8eeb36dd6b5105a397d4a8aa73f
parent44d6449350b866cbea613aabe5aba4aa640791cd
greybus: svc: pwrmon: validate svc protocol op status when getting rail names

AP should check for Greybus SVC Protocol Operation Status to determine if the
operation was successfully completed by the SVC

Testing Done:
- Successfully getting the rail names in the pwrmon_dummy sandbox branch

Signed-off-by: David Lin <dtwlin@google.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_protocols.h
drivers/staging/greybus/svc.c