OSDN Git Service

greybus: introduce gb_operation_request_send_sync()
authorAlex Elder <elder@linaro.org>
Wed, 3 Dec 2014 14:35:09 +0000 (08:35 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 3 Dec 2014 23:05:58 +0000 (15:05 -0800)
commitc25572ca943a1f8c2db7a8063c166d12480bb69d
tree35653228e482e5018f5d2d99f9eab69783329ede
parent4afb7fd0154753711e7bc68790f6f5de8dbed39e
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>
drivers/staging/greybus/i2c-gb.c
drivers/staging/greybus/operation.c
drivers/staging/greybus/operation.h
drivers/staging/greybus/usb-gb.c