greybus: define operation_cancel()
authorAlex Elder <elder@linaro.org>
Wed, 22 Oct 2014 07:04:29 +0000 (02:04 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 22 Oct 2014 09:20:28 +0000 (17:20 +0800)
commite1158df0634ab771297fc7510dd78bcbe83e8c87
treecaea559f3937c0b9f0cc386a9f159e7b729e6afa
parente816e3741956746d7a0e1992e4a4e96e8af5ab30
greybus: define operation_cancel()

Define a new function operation_cancel() that cancels an
outstanding operation.  Use it to clear out any operations that
might be pending at the time a connection is torn down.

Note:  This code isn't really functional yet, partially because
greybus_kill_gbuf() is not implemented.

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