greybus: embed gbufs into operation message structure
authorAlex Elder <elder@linaro.org>
Tue, 18 Nov 2014 00:08:35 +0000 (18:08 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 18 Nov 2014 01:19:20 +0000 (17:19 -0800)
commitbc46fabccdf4565f1228d4d775680d9c85934024
tree5a609e885ee933f2cf377c03b5cc431b1c5e0f48
parentf7935e333ad2f94ccf8dcc8185a2ec836bb81adb
greybus: embed gbufs into operation message structure

Embed the gbuf structures for operation messages into the message
structure rather than pointing to a dynamically allocated one.

Use a null gbuf->transfer_buffer pointer rather than a null gbuf
pointer to indicate an unused gbuf.

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