linux/bitfield.h: Add primitives for manipulating bitfields both in host- and fixed... 83/231983/6
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Tue, 12 May 2020 19:04:32 +0000 (21:04 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Sat, 23 May 2020 05:38:32 +0000 (14:38 +0900)
commit2d7e806a6929761c49adc79056975130fad5be50
tree0d2b0c593d34ce9a28cc7e09183a2960e4093d82
parent9eda04a7e7e9cb451e61f1937ece39b3c87c7d8d
linux/bitfield.h: Add primitives for manipulating bitfields both in host- and fixed-endian

Imports Al Viro's original Linux commit 00b0c9b82663a, which contains
an in depth explanation and two fixes from Johannes Berg:
 e7d4a95da86e0 "bitfield: fix *_encode_bits()",
 37a3862e12382 "bitfield: add u8 helpers".

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
[s.nawrocki: added empty lines between functions and macros]
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I93e237f1478e59a5a44345ea68aa4ed6a4ab7bed
include/linux/bitfield.h