aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2014-06-18 14:14:06 -0400
committerLee Jones <lee.jones@linaro.org>2014-07-09 09:58:20 -0400
commit12ebc8a50bc54e3a6fe207861fc6793181f9c2dc (patch)
tree2375f0509badbfb00479cdc58d19a332aa9158b4 /include/linux
parent6db07b6336589ff480528173e41f8f6af3f0097f (diff)
mfd: cros_ec: ec_dev->cmd_xfer() returns number of bytes received from EC
When communicating with the EC, the cmd_xfer() function should return the number of bytes it received from the EC, or negative on error. Signed-off-by: Bill Richardson <wfrichar@chromium.org> Signed-off-by: Doug Anderson <dianders@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/cros_ec.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/mfd/cros_ec.h b/include/linux/mfd/cros_ec.h
index 1f79f162abe4..0ebf26fddbbb 100644
--- a/include/linux/mfd/cros_ec.h
+++ b/include/linux/mfd/cros_ec.h
@@ -41,7 +41,7 @@ enum {
41 * @outdata: Outgoing data to EC 41 * @outdata: Outgoing data to EC
42 * @outsize: Outgoing length in bytes 42 * @outsize: Outgoing length in bytes
43 * @indata: Where to put the incoming data from EC 43 * @indata: Where to put the incoming data from EC
44 * @insize: Incoming length in bytes (filled in by EC) 44 * @insize: Max number of bytes to accept from EC
45 * @result: EC's response to the command (separate from communication failure) 45 * @result: EC's response to the command (separate from communication failure)
46 */ 46 */
47struct cros_ec_command { 47struct cros_ec_command {
@@ -64,9 +64,9 @@ struct cros_ec_command {
64 * sleep at the last suspend 64 * sleep at the last suspend
65 * @event_notifier: interrupt event notifier for transport devices 65 * @event_notifier: interrupt event notifier for transport devices
66 * @cmd_xfer: send command to EC and get response 66 * @cmd_xfer: send command to EC and get response
67 * Returns 0 if the communication succeeded, but that doesn't mean the EC 67 * Returns the number of bytes received if the communication succeeded, but
68 * was happy with the command it got. Caller should check msg.result for 68 * that doesn't mean the EC was happy with the command. The caller
69 * the EC's result code. 69 * should check msg.result for the EC's result code.
70 * 70 *
71 * @priv: Private data 71 * @priv: Private data
72 * @irq: Interrupt to use 72 * @irq: Interrupt to use