greybus: cancel buffers via magic cookie
authorAlex Elder <elder@linaro.org>
Tue, 18 Nov 2014 19:26:44 +0000 (13:26 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 18 Nov 2014 20:48:53 +0000 (12:48 -0800)
commita9163b2c30c9e110530ed5f56bc5296bb152aa98
treeefee4693a1cef24be2dc46041fb6896c9d6b3c0b
parent9ec5411adf7cd872424f579701a91fffd508270b
greybus: cancel buffers via magic cookie

Change the interface for canceling in-flight buffers to take a magic
cookie value as argument rather than a gbuf.  Right now we pass the
gbuf->hcd_data pointer that's assumed to have been set by the submit
routine.  But the next patch will change the submit routine to
return the cookie to be used, and the caller will be responsible for
keeping track of it.

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