diff options
author | Jett Rink <jettrink@chromium.org> | 2020-11-09 14:41:07 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-13 00:27:37 +0000 |
commit | c382208fe8052890704b83b60219c7d55164127b (patch) | |
tree | 47bbaac91afbd9fc34d40d9dcb2f70f37075b76a /include/crc8.h | |
parent | 9263a4f135deb87f7926ed2e91deef496bbfe818 (diff) | |
download | chrome-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 'include/crc8.h')
-rw-r--r-- | include/crc8.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/crc8.h b/include/crc8.h index e6e70e2bf3..45b2322b44 100644 --- a/include/crc8.h +++ b/include/crc8.h @@ -16,7 +16,7 @@ * @param len int, input, size of input data in bytes * @return the crc-8 of the input data. */ -uint8_t crc8(const uint8_t *data, int len); +uint8_t cros_crc8(const uint8_t *data, int len); /** * crc8_arg @@ -25,9 +25,10 @@ uint8_t crc8(const uint8_t *data, int len); * @param data uint8_t *, input, a pointer to input data * @param len int, input, size of input data in bytes * @param previous_crc uint8_t, input, pre-calculated CRC of previous data. - * Seed with zero for a new calculation (or use the result of crc8()). + * Seed with zero for a new calculation (or use the result of + * cros_crc8()). * @return the crc-8 of the input data. */ -uint8_t crc8_arg(const uint8_t *data, int len, uint8_t previous_crc); +uint8_t cros_crc8_arg(const uint8_t *data, int len, uint8_t previous_crc); #endif /* __CROS_EC_CRC8_H */ |