lib: packing: replace bit_reverse() with bitrev8()

Remove bit_reverse() function.  Instead use bitrev8() from linux/bitrev.h +
bitshift.  Reduces code-repetition.

Signed-off-by: Uladzislau Koshchanka <koshchanka@gmail.com>
Link: https://lore.kernel.org/r/20221210004423.32332-1-koshchanka@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Uladzislau Koshchanka
2022-12-10 03:44:23 +03:00
committed by Jakub Kicinski
parent 93e637a37b
commit 1280d4b76f
2 changed files with 3 additions and 14 deletions

View File

@@ -24,6 +24,7 @@ config LINEAR_RANGES
config PACKING
bool "Generic bitfield packing and unpacking"
select BITREVERSE
default n
help
This option provides the packing() helper function, which permits