]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
greybus: move gbuf initialization to caller
authorAlex Elder <elder@linaro.org>
Tue, 18 Nov 2014 00:08:33 +0000 (18:08 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 18 Nov 2014 01:19:20 +0000 (17:19 -0800)
commitbb88896eaf2577b8938f05a8f70c45cee0714a18
tree2679539ee768efe5ab951015b41b263e6cf90d54
parentc7f82d5dc07181b56b9596adab3a3891ace357fd
greybus: move gbuf initialization to caller

Change greybus_alloc_gbuf() so all it does is allocate the gbuf data
structure.  Move all of the initialization of the gbuf structure in
the caller.  Do the inverse in the caller prior to freeing the gbuf
structure via greybus_free_gbuf().  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/gbuf.c
drivers/staging/greybus/greybus.h
drivers/staging/greybus/operation.c