greybus: define gb_operation_status_map()
authorAlex Elder <elder@linaro.org>
Wed, 19 Nov 2014 23:55:04 +0000 (17:55 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 20 Nov 2014 00:49:57 +0000 (16:49 -0800)
commitbc717fcbf673b0852a474b869efb9bfd0989b012
tree542f4637f94110cd1946e72b9348c1fb8e60359d
parentd30df426ffc055586ec63359aee27458af10214f
greybus: define gb_operation_status_map()

Define a common function that maps an operation status value to a
Linux negative errno.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/operation.c
drivers/staging/greybus/operation.h