]> git.dujemihanovic.xyz Git - u-boot.git/commit
linux/bitfield.h: Add primitives for manipulating bitfields both in host- and fixed...
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Mon, 25 May 2020 11:39:56 +0000 (13:39 +0200)
committerMatthias Brugger <mbrugger@suse.com>
Fri, 10 Jul 2020 09:47:12 +0000 (11:47 +0200)
commitc92921bb52a7e104e0a48740d518c41ec4c86097
treed9db1710eb621a94ee13765c1b1385084bbb69cd
parentd69ddf24944162745665a45fef00a2115d371dbe
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>
[mb: squash fix including byteorder.h]
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
include/linux/bitfield.h