Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/power/supply/
Dab8500_btemp.c99 int bat_temp; member
273 int bat_temp; in ab8500_btemp_periodic_work() local
287 ret = thermal_zone_get_temp(di->tz, &bat_temp); in ab8500_btemp_periodic_work()
290 bat_temp = prev; in ab8500_btemp_periodic_work()
293 bat_temp /= 1000; in ab8500_btemp_periodic_work()
294 prev = bat_temp; in ab8500_btemp_periodic_work()
303 if ((bat_temp == di->prev_bat_temp) || !di->initialized) { in ab8500_btemp_periodic_work()
304 if ((di->bat_temp != di->prev_bat_temp) || !di->initialized) { in ab8500_btemp_periodic_work()
306 di->bat_temp = bat_temp; in ab8500_btemp_periodic_work()
309 } else if (bat_temp < di->prev_bat_temp) { in ab8500_btemp_periodic_work()
[all …]
Dda9052-battery.c300 int bat_temp; in da9052_bat_check_presence() local
302 bat_temp = da9052_adc_read_temp(bat->da9052); in da9052_bat_check_presence()
303 if (bat_temp < 0) in da9052_bat_check_presence()
304 return bat_temp; in da9052_bat_check_presence()
306 if (bat_temp > DA9052_BAT_TSH) in da9052_bat_check_presence()
Dab8500_fg.c208 int bat_temp; member
862 return power_supply_batinfo_ocv2cap(bi, voltage_uv, di->bat_temp) * 10; in ab8500_fg_volt_to_capacity()
905 di->bat_temp / 10); in ab8500_fg_battery_resistance()
919 __func__, di->bat_temp, resistance, di->bm->fg_res / 10, in ab8500_fg_battery_resistance()
2284 di->bat_temp = ret.intval; in ab8500_fg_get_ext_psy_data()
3223 di->bat_temp = 210; in ab8500_fg_probe()