lib: packing: replace bit_reverse() with bitrev8()
authorUladzislau Koshchanka <koshchanka@gmail.com>
Sat, 10 Dec 2022 00:44:23 +0000 (03:44 +0300)
committerJakub Kicinski <kuba@kernel.org>
Mon, 12 Dec 2022 23:06:30 +0000 (15:06 -0800)
commit1280d4b76f3402645aa7075a53f49a3a14be07a8
tree840f4a95bb00cfadae979d48e7da568c6746b694
parent93e637a37b2872c2fce6ce4df6e59cdc2fe8ca5e
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>
lib/Kconfig
lib/packing.c