Home
last modified time | relevance | path

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

/drivers/power/supply/
Dpower_supply_core.c655 struct power_supply_resistance_temp_table *resist_table; in power_supply_get_battery_info() local
677 info->resist_table = NULL; in power_supply_get_battery_info()
825 resist_table = info->resist_table = devm_kcalloc(&psy->dev, in power_supply_get_battery_info()
827 sizeof(*resist_table), in power_supply_get_battery_info()
829 if (!info->resist_table) { in power_supply_get_battery_info()
836 resist_table[index].temp = be32_to_cpu(*list++); in power_supply_get_battery_info()
837 resist_table[index].resistance = be32_to_cpu(*list++); in power_supply_get_battery_info()
856 if (info->resist_table) in power_supply_put_battery_info()
857 devm_kfree(&psy->dev, info->resist_table); in power_supply_put_battery_info()
Dsc27xx_fuel_gauge.c121 struct power_supply_resistance_temp_table *resist_table; member
506 resistance = power_supply_temp2resist_simple(data->resist_table, in sc27xx_fgu_get_vbat_ocv()
1033 data->resist_table = devm_kmemdup(data->dev, info.resist_table, in sc27xx_fgu_hw_init()
1037 if (!data->resist_table) { in sc27xx_fgu_hw_init()