lib: add linear range get selector within
authorGene Chen <gene_chen@richtek.com>
Mon, 19 Jul 2021 03:39:12 +0000 (11:39 +0800)
committerSebastian Reichel <sre@kernel.org>
Fri, 13 Aug 2021 16:37:38 +0000 (18:37 +0200)
commite12ef7bf34113f55c9bf444a680a15b6daf76f26
tree59f202c7ba4e2cb43fbfa08663758908a4de23cf
parente73f0f0ee7541171d89f2e2491130c7771ba58d3
lib: add linear range get selector within

Add linear range get selector within for choose closest selector
between minimum and maximum selector.

Signed-off-by: Gene Chen <gene_chen@richtek.com>
Reviewed-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
include/linux/linear_range.h
lib/linear_ranges.c