summaryrefslogtreecommitdiff
path: root/include/linux/crc32poly.h
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2018-07-17 19:05:37 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2018-07-27 14:04:33 +0300
commite37f2f93afe594682702439ca34eb8130598cdf2 (patch)
tree7a732e598720bc519788034b13c1cfcb2fa44361 /include/linux/crc32poly.h
parent1fb2e3f276ddafee81073d884f599cd2574c31e2 (diff)
downloadlinux-e37f2f93afe594682702439ca34eb8130598cdf2.tar.xz
lib/crc: Use consistent naming for CRC-32 polynomials
Header was defining CRCPOLY_LE/BE and CRC32C_POLY_LE but in fact all of them are CRC-32 polynomials so use consistent naming. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/crc32poly.h')
-rw-r--r--include/linux/crc32poly.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/crc32poly.h b/include/linux/crc32poly.h
index 7ad5aa92d3c7..62c4b7790a28 100644
--- a/include/linux/crc32poly.h
+++ b/include/linux/crc32poly.h
@@ -7,8 +7,8 @@
* *the* standard CRC-32 polynomial, first popularized by Ethernet.
* x^32+x^26+x^23+x^22+x^16+x^12+x^11+x^10+x^8+x^7+x^5+x^4+x^2+x^1+x^0
*/
-#define CRCPOLY_LE 0xedb88320
-#define CRCPOLY_BE 0x04c11db7
+#define CRC32_POLY_LE 0xedb88320
+#define CRC32_POLY_BE 0x04c11db7
/*
* This is the CRC32c polynomial, as outlined by Castagnoli.