Searched refs:old_volt (Results 1 – 2 of 2) sorted by relevance
53 int old_volt, new_volt; in s2mpa01_regulator_set_voltage_time_sel() local83 old_volt = rdev->desc->min_uV + (rdev->desc->uV_step * old_selector); in s2mpa01_regulator_set_voltage_time_sel()86 return DIV_ROUND_UP(abs(new_volt - old_volt), ramp_delay); in s2mpa01_regulator_set_voltage_time_sel()
94 int old_volt, new_volt; in s2mps11_regulator_set_voltage_time_sel() local123 old_volt = rdev->desc->min_uV + (rdev->desc->uV_step * old_selector); in s2mps11_regulator_set_voltage_time_sel()126 return DIV_ROUND_UP(abs(new_volt - old_volt), ramp_delay); in s2mps11_regulator_set_voltage_time_sel()