]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
greybus: kill gbuf->complete
authorAlex Elder <elder@linaro.org>
Thu, 6 Nov 2014 13:01:06 +0000 (07:01 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 6 Nov 2014 16:03:36 +0000 (08:03 -0800)
commit5d2207e7047ebd110307f5f60c440f7119f999b8
tree4e92f5f61622c5d462ee7379707f8743f715694a
parent3a0e3c3efde8655958dc10673f374a8cc983cca2
greybus: kill gbuf->complete

The gbuf complete method is a callback that allows the creator of a
gbuf to know when all processing on a gbuf is done.

We now only ever allocate gbufs for use in Greybus operations, and
in that case we only ever supply gb_operation_gbuf_complete() as the
completion callback.  Furthermore, the only place gbuf->complete()
is called is in gb_operation_recv_work().

Knowing this, we can just call gb_operation_gbuf_complete() directly
from gb_operation_recv_work(), and get rid of the gbuf->complete()
method entirely.

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