summaryrefslogtreecommitdiff
path: root/common/cbi.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/cbi.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/cbi.c')
-rw-r--r--common/cbi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cbi.c b/common/cbi.c
index c6fa213807..02f154e8ee 100644
--- a/common/cbi.c
+++ b/common/cbi.c
@@ -26,8 +26,8 @@
*/
uint8_t cbi_crc8(const struct cbi_header *h)
{
- return crc8((uint8_t *)&h->crc + 1,
- h->total_size - sizeof(h->magic) - sizeof(h->crc));
+ return cros_crc8((uint8_t *)&h->crc + 1,
+ h->total_size - sizeof(h->magic) - sizeof(h->crc));
}
uint8_t *cbi_set_data(uint8_t *p, enum cbi_data_tag tag,