greybus: allocate gbufs using the connection
authorAlex Elder <elder@linaro.org>
Mon, 6 Oct 2014 11:53:10 +0000 (06:53 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 6 Oct 2014 15:56:43 +0000 (08:56 -0700)
commit6eb3f4bdec331c951906792479a0f7ea49fe9a5c
tree0091db0ac0316cb1b86c9f253312cfeee229960f
parent00d2e7588c79a2b9681f243d06ad02a254ab4ff9
greybus: allocate gbufs using the connection

Switch to using the connection rather than the host device as
the locus for doing Greybus buffer allocation.  A connection
encapsulates both the host device (whose driver is what's required
for allocation) and the *destination* cport id.  Record the
connection a gbuf is associated with rather than the host module and
(unspecified) cport id.

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