summaryrefslogtreecommitdiff
path: root/driver/bc12/mt6360.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 /driver/bc12/mt6360.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 'driver/bc12/mt6360.c')
-rw-r--r--driver/bc12/mt6360.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/bc12/mt6360.c b/driver/bc12/mt6360.c
index c634be8e33..26925ece03 100644
--- a/driver/bc12/mt6360.c
+++ b/driver/bc12/mt6360.c
@@ -203,7 +203,7 @@ static int mt6360_regulator_read8(int addr, int reg, int *val)
real_crc = (*val >> 8) & 0xFF;
*val &= 0xFF;
out[2] = *val;
- crc = crc8(out, ARRAY_SIZE(out));
+ crc = cros_crc8(out, ARRAY_SIZE(out));
if (crc != real_crc)
return EC_ERROR_CRC;