Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/power/supply/
Dda9052-battery.c314 static int da9052_bat_interpolate(int vbat_lower, int vbat_upper, in da9052_bat_interpolate() argument
320 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() local
390 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()