greybus: distinguish incoming from outgoing requests
authorAlex Elder <elder@linaro.org>
Wed, 19 Nov 2014 23:55:02 +0000 (17:55 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 20 Nov 2014 00:49:57 +0000 (16:49 -0800)
commit30a2964f8455ede0f2416a3b6a28b60acc4b569c
tree62592ded5fe090b62b33b6cfbda65a07f460b913
parentdcec19fb1b10b62e02db9e234f0091509545971e
greybus: distinguish incoming from outgoing requests

When we remove the mandatory status byte from response messages we
will no longer be able to use a zero-sized response to indicate
an operation is to be used for an incoming request.

Define a new function gb_operation_create_incoming() to be used
for incoming operations.  Change (and rename) gb_operation_create()
to be a helper that takes a Boolean to indicate which type is to be
created, and use a simple wrapper to expose the outgoing operation
creation routine.

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