greybus: introduce gb_operation_errno_map()
authorAlex Elder <elder@linaro.org>
Tue, 2 Dec 2014 14:30:38 +0000 (08:30 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 2 Dec 2014 22:44:11 +0000 (14:44 -0800)
commit0c90fff4e35c1322a52709f17d630431c7deb931
tree8c43efbc5e1532f46d616e4ebf07506878430b58
parentd4a1ff674dfbd120930dbd011773b3ae79385449
greybus: introduce gb_operation_errno_map()

Define gb_operation_errno_map(), which maps an operation->errno
into the u8 value that represents it in the status field of an
operation response header.  It'll be used in an upcoming patch.

Make gb_operation_status_map() a private function.  It's not used
outside "operation.c" and I don't believe it ever should be.

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