Searched refs:vbat_lower (Results 1 – 1 of 1) sorted by relevance
318 static int da9052_bat_interpolate(int vbat_lower, int vbat_upper, in da9052_bat_interpolate() argument324 tmp = ((level_upper - level_lower) * 1000) / (vbat_upper - vbat_lower); in da9052_bat_interpolate()325 tmp = level_lower + (((bat_voltage - vbat_lower) * tmp) / 1000); in da9052_bat_interpolate()361 int vbat_lower; in da9052_bat_read_capacity() local394 vbat_lower = vc_tbl[i][j + 1][0]; in da9052_bat_read_capacity()404 *capacity = da9052_bat_interpolate(vbat_lower, vbat_upper, level_lower, in da9052_bat_read_capacity()