Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/regulator/
Dregulator_gpio.c112 int32_t best_voltage = INT32_MAX; in regulator_gpio_set_voltage() local
119 cfg->states[state_idx * 2] >= best_voltage) { in regulator_gpio_set_voltage()
123 best_voltage = cfg->states[state_idx * 2]; in regulator_gpio_set_voltage()
127 if (best_voltage == INT32_MAX) { in regulator_gpio_set_voltage()
132 if (best_voltage == data->current_volt_uv) { in regulator_gpio_set_voltage()
141 data->current_volt_uv = best_voltage; in regulator_gpio_set_voltage()