Searched refs:vbat_upper (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()358 int vbat_upper; in da9052_bat_read_capacity() local389 vbat_upper = vc_tbl[i][j][0]; in da9052_bat_read_capacity()400 *capacity = da9052_bat_interpolate(vbat_lower, vbat_upper, level_lower, in da9052_bat_read_capacity()