greybus: pass operation type on request receive
authorAlex Elder <elder@linaro.org>
Wed, 12 Nov 2014 21:17:55 +0000 (15:17 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 21:11:35 +0000 (13:11 -0800)
commitc3cf278533c6e5f3df385afce8eb11889e58cfe3
tree5a6589c9ed324116aadb8b8279ca27f580972f88
parent360a8779d96c7c592ee79d035afe9bdf05695204
greybus: pass operation type on request receive

When an incoming request is received, the operation type is encoded
in the header and is not available in the payload.  Add the
operation type as a parameter to the request_recv method so the
request handler knows what to do.

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