greybus: encapsulate operation result access
authorAlex Elder <elder@linaro.org>
Tue, 25 Nov 2014 17:33:13 +0000 (11:33 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 25 Nov 2014 18:49:51 +0000 (10:49 -0800)
commitba986b5ab97f59669cc5d174a8a7359b8600e2e5
tree3a70924a45d3c21050a373886483904e28a7abb5
parent9f240f20caf93090d82949d59d467dcde341560b
greybus: encapsulate operation result access

Hide the setting and getting of the operation result (stored in
operation->errno) behind a pair of accessor functions.  Only the
operation core should be setting the result, but operations that
complete asynchronously will need access to the result so expose
the function that provides that.

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