diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-07-02 11:25:22 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-07-03 18:23:09 -0700 |
commit | 5f30f40cb5a83bc900ce3400d6a5f3327bc96fdc (patch) | |
tree | e16e8104d83f9f3cc61e9212bd544aa85d5308a3 /common/host_command.c | |
parent | 1b9a0ade1604b5ed9c6677eaef835014e2b55e3e (diff) | |
download | chrome-ec-5f30f40cb5a83bc900ce3400d6a5f3327bc96fdc.tar.gz |
Move protocol v2 constants to ec_commands.h
These constants are scattered around the various interface
implementations and should be in one place. This will also clean up
the u-boot side when ec_commands.h is copied there.
BUG=chrome-os-partner:20257
BRANCH=none
TEST=build link, spring, pit; test 'ectool hello'
Change-Id: Ib1425db00ec8220538d8c5c65107ac9548009516
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/60810
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/host_command.c')
-rw-r--r-- | common/host_command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/host_command.c b/common/host_command.c index e482658580..2f8d514194 100644 --- a/common/host_command.c +++ b/common/host_command.c @@ -631,7 +631,7 @@ static int command_host_command(int argc, char **argv) int rv; /* Use shared memory for command params space */ - if (shared_mem_acquire(EC_HOST_PARAM_SIZE, &cmd_params)) { + if (shared_mem_acquire(EC_PROTO2_MAX_PARAM_SIZE, &cmd_params)) { ccputs("Can't acquire shared memory buffer.\n"); return EC_ERROR_UNKNOWN; } @@ -670,7 +670,7 @@ static int command_host_command(int argc, char **argv) } args.response = cmd_params; - args.response_max = EC_HOST_PARAM_SIZE; + args.response_max = EC_PROTO2_MAX_PARAM_SIZE; args.response_size = 0; res = host_command_process(&args); |