summaryrefslogtreecommitdiff
path: root/util/cros_ec_dev.h
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2013-06-19 16:00:03 -0700
committerChromeBot <chrome-bot@google.com>2013-06-20 16:47:06 -0700
commite493e7a01333fb0894cbcbc41cd1ec70906a2081 (patch)
tree30692c39979929f5785f44dbbd58e36df2612105 /util/cros_ec_dev.h
parentb839e6524193b61bad0f5ce935b45f48e26d23c0 (diff)
downloadchrome-ec-e493e7a01333fb0894cbcbc41cd1ec70906a2081.tar.gz
Add EC_CMD_TEST_PROTOCOL to fake certain responses.
This lets us force the EC to return various error codes, so that we can be sure we're seeing them. BUG=chromium:242706 BRANCH=none TEST=none Trigger various errors like so: ectool test 0 14 ectool test 1 14 ectool test 5 14 ectool test 8 14 ectool test 0 33 Change-Id: Ia951cd7afacdcce6c8ec7d35d3bfb5b113dea694 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/59327 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'util/cros_ec_dev.h')
-rw-r--r--util/cros_ec_dev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cros_ec_dev.h b/util/cros_ec_dev.h
index f56c3ef67f..f6f5a5542c 100644
--- a/util/cros_ec_dev.h
+++ b/util/cros_ec_dev.h
@@ -19,7 +19,7 @@
* @outdata: Outgoing data to EC
* @outsize: Outgoing length in bytes
* @indata: Where to put the incoming data from EC
- * @insize: Incoming length in bytes (filled in by EC)
+ * @insize: On call, how much we can accept. On return, how much we got.
* @result: EC's response to the command (separate from communication failure)
* ioctl returns zero on success, negative on error
*/