diff options
| author | Pali Rohár <[email protected]> | 2022-04-12 11:20:40 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-04-21 14:32:40 -0400 |
| commit | bb3d71b7eff4f137c1c4560950536aeb1740e004 (patch) | |
| tree | 074109b92a8601f2a1a57f302b7ccdc2acc7f3da /include/u-boot | |
| parent | b616947052178f358bbb07d368ba3399fce9d495 (diff) | |
crc16-ccitt: Rename file with CRC-16-CCITT implementation to crc16-ccitt.c
U-Boot CRC-16 implementation uses polynomial x^16 + x^12 + x^5 + 1 which is
not standard CRC-16 algorithm, but it is known as CRC-16-CCITT. Rename file
crc16.c to crc16-ccitt.c to reduce confusion.
Signed-off-by: Pali Rohár <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'include/u-boot')
| -rw-r--r-- | include/u-boot/crc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/u-boot/crc.h b/include/u-boot/crc.h index 52ec6a9e2d4..eba8edfb4f3 100644 --- a/include/u-boot/crc.h +++ b/include/u-boot/crc.h @@ -25,7 +25,7 @@ */ unsigned int crc8(unsigned int crc_start, const unsigned char *vptr, int len); -/* lib/crc16.c - 16 bit CRC with polynomial x^16+x^12+x^5+1 (CRC-CCITT) */ +/* lib/crc16-ccitt.c - 16 bit CRC with polynomial x^16+x^12+x^5+1 (CRC-CCITT) */ uint16_t crc16_ccitt(uint16_t crc_start, const unsigned char *s, int len); /** * crc16_ccitt_wd_buf - Perform CRC16-CCIT on an input buffer and return the |
