Home
last modified time | relevance | path

Searched refs:min_vol (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/regulator/
H A Ds5m8767.c249 int min_vol) in s5m8767_convert_voltage_to_sel() argument
256 if (min_vol > desc->max) in s5m8767_convert_voltage_to_sel()
259 if (min_vol < desc->min) in s5m8767_convert_voltage_to_sel()
260 min_vol = desc->min; in s5m8767_convert_voltage_to_sel()
262 selector = DIV_ROUND_UP(min_vol - desc->min, desc->step); in s5m8767_convert_voltage_to_sel()
H A Dmax8997-regulator.c375 int min_vol, int max_vol) in max8997_get_voltage_proper_val() argument
382 if (max_vol < desc->min || min_vol > desc->max) in max8997_get_voltage_proper_val()
385 if (min_vol < desc->min) in max8997_get_voltage_proper_val()
386 min_vol = desc->min; in max8997_get_voltage_proper_val()
388 i = DIV_ROUND_UP(min_vol - desc->min, desc->step); in max8997_get_voltage_proper_val()