OSDN Git Service

greybus: operation: fix callback handling and documentation
authorJohan Hovold <johan@hovoldconsulting.com>
Fri, 27 Mar 2015 11:41:12 +0000 (12:41 +0100)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 30 Mar 2015 13:10:06 +0000 (15:10 +0200)
commit37754030b0b9f7b81217b891cdc5f21dd7d29e4d
tree4c8f49cb454458745f8c21bb6f234b6a27c6c475
parentd506283491eb423cb8c6957d91070d3ac2d81b6a
greybus: operation: fix callback handling and documentation

Fix up obsolete comments referring to null callback pointers for
synchronous operations, and make sure a callback is always provided when
sending a request.

Also document that the callback is responsible for dropping the initial
(and not necessarily final) reference to the operation.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/operation.c