greybus: uart: send_data should return size or error
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Tue, 2 Jun 2015 12:40:48 +0000 (13:40 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 4 Jun 2015 05:08:22 +0000 (14:08 +0900)
commit563bd79b2ddd12dd9da89635dc218d6c706a4130
tree6086b2096cd428338c9c30697f61f2c0a2a755b4
parentf95ad78c72e72bcc922e75b80b35c6e9549b9d72
greybus: uart: send_data should return size or error

gb_operation_sync returns 0 on success but the calling function
expects the number of bytes written on success or a negative errno

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/uart.c