mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
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>
This commit is contained in:
parent
e73f0f0ee7
commit
e12ef7bf34
2 changed files with 33 additions and 0 deletions
|
@ -41,6 +41,8 @@ int linear_range_get_selector_low(const struct linear_range *r,
|
|||
int linear_range_get_selector_high(const struct linear_range *r,
|
||||
unsigned int val, unsigned int *selector,
|
||||
bool *found);
|
||||
void linear_range_get_selector_within(const struct linear_range *r,
|
||||
unsigned int val, unsigned int *selector);
|
||||
int linear_range_get_selector_low_array(const struct linear_range *r,
|
||||
int ranges, unsigned int val,
|
||||
unsigned int *selector, bool *found);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue