diff options
author | Alex Elder <elder@linaro.org> | 2014-12-03 08:35:09 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <greg@kroah.com> | 2014-12-03 15:05:58 -0800 |
commit | c25572ca943a1f8c2db7a8063c166d12480bb69d (patch) | |
tree | 35653228e482e5018f5d2d99f9eab69783329ede /drivers/staging/greybus/operation.h | |
parent | 4afb7fd0154753711e7bc68790f6f5de8dbed39e (diff) | |
download | op-kernel-dev-c25572ca943a1f8c2db7a8063c166d12480bb69d.zip op-kernel-dev-c25572ca943a1f8c2db7a8063c166d12480bb69d.tar.gz |
greybus: introduce gb_operation_request_send_sync()
Define a new function used to initiate a synchronous operation.
It sends the operation request message and doesn't return until
the response has been received and/or the operation's result
has been set.
This gets rid of the convention that a null callback pointer
signifies a synchronous operation.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging/greybus/operation.h')
-rw-r--r-- | drivers/staging/greybus/operation.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/operation.h b/drivers/staging/greybus/operation.h index c73d9b9..3415e8b 100644 --- a/drivers/staging/greybus/operation.h +++ b/drivers/staging/greybus/operation.h @@ -115,6 +115,7 @@ bool gb_operation_response_alloc(struct gb_operation *operation, int gb_operation_request_send(struct gb_operation *operation, gb_operation_callback callback); +int gb_operation_request_send_sync(struct gb_operation *operation); int gb_operation_response_send(struct gb_operation *operation, int errno); void gb_operation_cancel(struct gb_operation *operation, int errno); |