summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2012-07-16 20:16:46 -0700
committerGerrit <chrome-bot@google.com>2012-07-16 23:10:01 -0700
commitdae19428a6124300dc91ad4167ed3093d3dc3e07 (patch)
treeeb12c1c5bf96d5ac6ec0cd7ea022990ab4a15e55
parent096ffbb04e0462e9e211ef16fc7ba725e3e6ba18 (diff)
downloadchrome-ec-dae19428a6124300dc91ad4167ed3093d3dc3e07.tar.gz
Fix a bug in I2C host command handler
Signed-off-by: Vic Yang <victoryang@chromium.org> BUG=none TEST='ectool i2cread' succeed. Change-Id: I0639c340b600ff5e07b9c0aa707fe335e90771b5 Reviewed-on: https://gerrit.chromium.org/gerrit/27599 Reviewed-by: Rong Chang <rongchang@chromium.org> Commit-Ready: Vic Yang <victoryang@chromium.org> Tested-by: Vic Yang <victoryang@chromium.org>
-rw-r--r--common/i2c_commands.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/i2c_commands.c b/common/i2c_commands.c
index 6111b8ac7b..072df2f5b5 100644
--- a/common/i2c_commands.c
+++ b/common/i2c_commands.c
@@ -28,6 +28,7 @@ int i2c_command_read(struct host_cmd_handler_args *args)
if (rv)
return EC_RES_ERROR;
r->data = data;
+ args->response_size = sizeof(*r);
return EC_RES_SUCCESS;
}