]> git.baikalelectronics.ru Git - kernel.git/commit
bitfield.h: add FIELD_MAX() and field_max()
authorAlex Elder <elder@linaro.org>
Thu, 12 Mar 2020 16:44:27 +0000 (11:44 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Mar 2020 22:48:37 +0000 (15:48 -0700)
commita4d82b36930f3780e1a7dc3428966c1bdf78c4a9
treeefa42592a94ddb1b3cb2b62a8a1e6a903c914cbb
parentf7056b8ec15613eda8713371a0e928cc7fd161c8
bitfield.h: add FIELD_MAX() and field_max()

Define FIELD_MAX(), which supplies the maximum value that can be
represented by a field value.  Define field_max() as well, to go
along with the lower-case forms of the field mask functions.

Signed-off-by: Alex Elder <elder@linaro.org>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/bitfield.h