Searched refs:vbat_lower (Results 1 – 1 of 1) sorted by relevance
314 static int da9052_bat_interpolate(int vbat_lower, int vbat_upper, in da9052_bat_interpolate() argument320 tmp = ((level_upper - level_lower) * 1000) / (vbat_upper - vbat_lower); in da9052_bat_interpolate()321 tmp = level_lower + (((bat_voltage - vbat_lower) * tmp) / 1000); in da9052_bat_interpolate()357 int vbat_lower; in da9052_bat_read_capacity() local390 vbat_lower = vc_tbl[i][j + 1][0]; in da9052_bat_read_capacity()400 *capacity = da9052_bat_interpolate(vbat_lower, vbat_upper, level_lower, in da9052_bat_read_capacity()