Searched refs:bat_voltage (Results 1 – 1 of 1) sorted by relevance
316 int bat_voltage) in da9052_bat_interpolate() argument321 tmp = level_lower + (((bat_voltage - vbat_lower) * tmp) / 1000); in da9052_bat_interpolate()356 int bat_voltage; in da9052_bat_read_capacity() local366 ret = da9052_bat_read_volt(bat, &bat_voltage); in da9052_bat_read_capacity()376 if (bat_voltage >= vc_tbl[i][0][0]) { in da9052_bat_read_capacity()380 if (bat_voltage <= vc_tbl[i][DA9052_VC_TBL_SZ - 1][0]) { in da9052_bat_read_capacity()387 if ((bat_voltage <= vc_tbl[i][j][0]) && in da9052_bat_read_capacity()388 (bat_voltage >= vc_tbl[i][j + 1][0])) { in da9052_bat_read_capacity()401 level_upper, bat_voltage); in da9052_bat_read_capacity()