Home
last modified time | relevance | path

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

/openbmc/linux/drivers/power/supply/
H A Dadp5061.c123 static const int adp5061_vmax[36] = { variable
268 if (regval >= ARRAY_SIZE(adp5061_vmax)) in adp5061_get_max_voltage()
269 regval = ARRAY_SIZE(adp5061_vmax) - 1; in adp5061_get_max_voltage()
271 val->intval = adp5061_vmax[regval] * 1000; in adp5061_get_max_voltage()
285 vmax_index = adp5061_get_array_index(adp5061_vmax, in adp5061_set_max_voltage()
286 ARRAY_SIZE(adp5061_vmax), val); in adp5061_set_max_voltage()