Home
last modified time | relevance | path

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

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