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-13 00:27:37 +0000
commitc382208fe8052890704b83b60219c7d55164127b (patch)
tree47bbaac91afbd9fc34d40d9dcb2f70f37075b76a /common/console.c
parent9263a4f135deb87f7926ed2e91deef496bbfe818 (diff)
downloadchrome-ec-c382208fe8052890704b83b60219c7d55164127b.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 Signed-off-by: Jett Rink <jettrink@chromium.org> Change-Id: I2dc509fe1c1d8c2a4cdec3943b63f29429919137 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2532691 Reviewed-by: Jack Rosenthal <jrosenth@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");