diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-06-25 12:55:35 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-06-26 09:08:25 -0700 |
commit | 1a00c4eab591f420a2e350e42e9047b2934451f0 (patch) | |
tree | 78a274088c5b432406cc02d6170330656e80158e /util | |
parent | ab6546cbaa69e4d5e507c8d57cae5300eb62d8ef (diff) | |
download | chrome-ec-1a00c4eab591f420a2e350e42e9047b2934451f0.tar.gz |
Rename LPC packet size constant for version 3 protocol
The maximum packet length for LPC is limited by the I/O space window
size. But that's not the case for SPI or LPC. Rename LPC constant
before adding a SPI constant.
BUG=chrome-os-partner:20257
BRANCH=none
TEST=build link
Change-Id: I088327a11eff18d401c773db953700a36f9c1bb4
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/59959
Diffstat (limited to 'util')
-rw-r--r-- | util/comm-lpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/comm-lpc.c b/util/comm-lpc.c index c6ddee93c5..3290bc7c7c 100644 --- a/util/comm-lpc.c +++ b/util/comm-lpc.c @@ -138,7 +138,7 @@ static int ec_command_lpc_3(int command, int version, int i; /* Fail if output size is too big */ - if (outsize + sizeof(rq) > EC_HOST_PACKET_SIZE) + if (outsize + sizeof(rq) > EC_LPC_HOST_PACKET_SIZE) return -EC_RES_REQUEST_TRUNCATED; /* Fill in request packet */ |