summaryrefslogtreecommitdiff
path: root/common/console.c
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2020-11-09 14:41:07 -0700
committerCommit Bot <commit-bot@chromium.org>2020-11-11 16:59:43 +0000
commitbefe5a9c78ff4e75db7c5cda801688c8976e95f3 (patch)
tree11ebc37ddd339d4b485d8c4c96d9e1a1033c29d4 /common/console.c
parent09aed466c25320fff53e0e33440ad7c745c22828 (diff)
downloadchrome-ec-befe5a9c78ff4e75db7c5cda801688c8976e95f3.tar.gz
crc8: rename crc8 to cros_crc8 to to avoid zephyr conflict
Zephyr already provides a robust implementation for crc8, but it conflicts with platform/ec's name of crc8. Rename platform/ec to use cros_crc8 instead since it is a special case of zephyr crc8 implementation. BRANCH=none BUG=b:168032589 TEST=builds. Just a rename Change-Id: Idf312098cb921c8e10dcb48c5eb297801af2df8a Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2527810 Reviewed-by: Yuval Peress <peress@chromium.org>
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/console.c b/common/console.c
index 8f42dffbf5..1a2a41c9c1 100644
--- a/common/console.c
+++ b/common/console.c
@@ -217,7 +217,7 @@ static int handle_command(char *input)
/* Lastly, verify the CRC8 of the command. */
if (i+command_len > input_len)
goto command_has_error;
- if (packed_crc8 != crc8(&input[i], command_len)) {
+ if (packed_crc8 != cros_crc8(&input[i], command_len)) {
command_has_error:
/* Send back the error string. */
ccprintf("&&EE\n");