summaryrefslogtreecommitdiff
path: root/common/vboot
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/vboot
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/vboot')
-rw-r--r--common/vboot/efs2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/vboot/efs2.c b/common/vboot/efs2.c
index e608fd5841..f0b60e49e0 100644
--- a/common/vboot/efs2.c
+++ b/common/vboot/efs2.c
@@ -141,7 +141,7 @@ static enum cr50_comm_err cmd_to_cr50(enum cr50_comm_cmd cmd,
p->type = cmd;
p->size = size;
memcpy(p->data, data, size);
- p->crc = crc8((uint8_t *)&p->type,
+ p->crc = cros_crc8((uint8_t *)&p->type,
sizeof(p->type) + sizeof(p->size) + size);
do {