greybus: svc: Use -EIO instead of -EINVAL for unipro errors
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 4 Dec 2015 16:00:08 +0000 (21:30 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 5 Dec 2015 00:23:36 +0000 (16:23 -0800)
commit4aac6c5a144921448237d2a2bff50d4fba0b0faf
tree37ddd9c984c23f25dcfb60b6ffeea60f7124a08f
parentc5b6df9c8dbe0329e154410e9d39526ab01c0b51
greybus: svc: Use -EIO instead of -EINVAL for unipro errors

-EIO fits better here, rather than -EINVAL as the arguments to the
routine itself are valid, just that we failed while doing unipro
transfers.

Suggested-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/svc.c