diff options
author | Jett Rink <jettrink@chromium.org> | 2020-11-09 14:41:07 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-11 16:59:43 +0000 |
commit | befe5a9c78ff4e75db7c5cda801688c8976e95f3 (patch) | |
tree | 11ebc37ddd339d4b485d8c4c96d9e1a1033c29d4 /driver/bc12 | |
parent | 09aed466c25320fff53e0e33440ad7c745c22828 (diff) | |
download | chrome-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 'driver/bc12')
-rw-r--r-- | driver/bc12/mt6360.c | 2 |
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; |