Home
last modified time | relevance | path

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

/openbmc/linux/drivers/power/supply/
H A D88pm860x_battery.c623 int ibatt_sum2; in calc_resistor() local
673 for (i = 0, vbatt_sum2 = 0, ibatt_sum2 = 0; i < 10; i++) { in calc_resistor()
683 ibatt_sum2 = ibatt_sum2 - data; /* discharging */ in calc_resistor()
685 ibatt_sum2 = ibatt_sum2 + data; /* charging */ in calc_resistor()
692 if ((vbatt_sum1 > vbatt_sum2) && (ibatt_sum1 > ibatt_sum2) && in calc_resistor()
693 (ibatt_sum2 > 0)) { in calc_resistor()
696 / (ibatt_sum1 - ibatt_sum2); in calc_resistor()