diff options
author | Faiz Abbas <faiz_abbas@ti.com> | 2018-02-06 19:15:58 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-02-14 12:14:11 -0500 |
commit | 36c1877c5c28dd515ad90d3a6b78f1797d80636e (patch) | |
tree | 90ab065b09a0cb4d26fb4462b40e75ce4be056eb /lib/crc32.c | |
parent | 7e63ba2f49c68656cf8a530de28582ba8b81099c (diff) | |
download | u-boot-36c1877c5c28dd515ad90d3a6b78f1797d80636e.tar.gz |
lib: Kconfig: Move DYNAMIC_CRC_TABLE to Kconfig
Add CONFIG prefix to DYNAMIC_CRC_TABLE and implement it in
Kconfig.
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Diffstat (limited to 'lib/crc32.c')
-rw-r--r-- | lib/crc32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/crc32.c b/lib/crc32.c index 9759212486..7f545fde4a 100644 --- a/lib/crc32.c +++ b/lib/crc32.c @@ -26,7 +26,7 @@ #define tole(x) cpu_to_le32(x) -#ifdef DYNAMIC_CRC_TABLE +#ifdef CONFIG_DYNAMIC_CRC_TABLE local int crc_table_empty = 1; local uint32_t crc_table[256]; @@ -157,7 +157,7 @@ tole(0xb40bbe37L), tole(0xc30c8ea1L), tole(0x5a05df1bL), tole(0x2d02ef8dL) */ const uint32_t * ZEXPORT get_crc_table() { -#ifdef DYNAMIC_CRC_TABLE +#ifdef CONFIG_DYNAMIC_CRC_TABLE if (crc_table_empty) make_crc_table(); #endif return (const uint32_t *)crc_table; @@ -181,7 +181,7 @@ uint32_t ZEXPORT crc32_no_comp(uint32_t crc, const Bytef *buf, uInt len) const uint32_t *tab = crc_table; const uint32_t *b =(const uint32_t *)buf; size_t rem_len; -#ifdef DYNAMIC_CRC_TABLE +#ifdef CONFIG_DYNAMIC_CRC_TABLE if (crc_table_empty) make_crc_table(); #endif |