greybus: remove status from all responses
authorAlex Elder <elder@linaro.org>
Wed, 19 Nov 2014 23:55:05 +0000 (17:55 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 20 Nov 2014 00:51:28 +0000 (16:51 -0800)
commit25d0f81a0ec9263618b6e7e75879e963d438bc11
tree606c889adad259496759b023706c980fd0cc35d0
parentbc717fcbf673b0852a474b869efb9bfd0989b012
greybus: remove status from all responses

This is a pervasive change, but not really a big one.  However:

        ==============  Pay attention to this ==============
If you're doing any testing with "gbsim" you need to
update that program in sync with this change, because
it changes the protocol used between them.
        ==============  Pay attention to this ==============

The status of a request is now recorded in the header of a response
message.  The previous patch put that header status byte in place,
and this one removes the status byte from all the response
messages.

And finally, since we're modifying all these files anyway...
Use gb_operation_status_map() to come up with a return code
to use, given an operation response.  Right now most errors
simply result in -EIO getting returned.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/battery-gb.c
drivers/staging/greybus/gpio-gb.c
drivers/staging/greybus/i2c-gb.c
drivers/staging/greybus/operation.c
drivers/staging/greybus/pwm-gb.c
drivers/staging/greybus/uart-gb.c
drivers/staging/greybus/vibrator-gb.c