Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/mfd/
Dtps65911-comparator.c55 struct comparator tps_comp = tps_comparators[id]; in comp_threshold_set() local
60 while (curr_voltage < tps_comp.uV_max) { in comp_threshold_set()
61 curr_voltage = tps_comp.vsel_table[index]; in comp_threshold_set()
68 if (curr_voltage > tps_comp.uV_max) in comp_threshold_set()
72 ret = regmap_write(tps65910->regmap, tps_comp.reg, val); in comp_threshold_set()
79 struct comparator tps_comp = tps_comparators[id]; in comp_threshold_get() local
83 ret = regmap_read(tps65910->regmap, tps_comp.reg, &val); in comp_threshold_get()
88 return tps_comp.vsel_table[val]; in comp_threshold_get()