Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/mfd/
H A 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 = tps65910_reg_write(tps65910, tps_comp.reg, val); in comp_threshold_set()
79 struct comparator tps_comp = tps_comparators[id]; in comp_threshold_get() local
83 ret = tps65910_reg_read(tps65910, tps_comp.reg, &val); in comp_threshold_get()
88 return tps_comp.vsel_table[val]; in comp_threshold_get()
/kernel/linux/linux-6.6/drivers/mfd/
H A 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()

Completed in 2 milliseconds