aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/crc32poly.h
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2018-07-17 18:05:37 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2018-07-27 19:04:33 +0800
commite37f2f93afe594682702439ca34eb8130598cdf2 (patch)
tree7a732e598720bc519788034b13c1cfcb2fa44361 /include/linux/crc32poly.h
parentlib/crc: Move polynomial definition to separate header (diff)
downloadlinux-dev-e37f2f93afe594682702439ca34eb8130598cdf2.tar.xz
linux-dev-e37f2f93afe594682702439ca34eb8130598cdf2.zip
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.