lib: add linear range index macro
authorChiaEn Wu <chiaen_wu@richtek.com>
Thu, 15 Sep 2022 09:47:32 +0000 (17:47 +0800)
committerSebastian Reichel <sre@kernel.org>
Fri, 16 Sep 2022 20:27:19 +0000 (22:27 +0200)
commitc2f2e2c3aecdbabf822272a4b6e7d91537633cd9
tree68715df2736f42c3904dff7b71ca931403a69a19
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
lib: add linear range index macro

Add linear_range_idx macro for declaring the linear_range struct simply.

Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Signed-off-by: ChiaEn Wu <chiaen_wu@richtek.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
include/linux/linear_range.h