Home
last modified time | relevance | path

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

/openbmc/qemu/hw/misc/
H A Dbcm2835_thermal.c35 static uint16_t bcm2835_thermal_temp2adc(int temp_C) in bcm2835_thermal_temp2adc() argument
37 return (temp_C - THERMAL_OFFSET_C) / THERMAL_COEFF; in bcm2835_thermal_temp2adc()
/openbmc/linux/drivers/power/supply/
H A Dds2760_battery.c102 int temp_C; /* units of 0.1 °C */ member
306 di->temp_C = di->temp_raw + (di->temp_raw / 4); in ds2760_battery_read_status()
332 di->full_active_uAh = battery_interpolate(scale, di->temp_C / 10); in ds2760_battery_read_status()
340 di->empty_uAh = battery_interpolate(scale, di->temp_C / 10); in ds2760_battery_read_status()
572 val->intval = di->temp_C; in ds2760_battery_get_property()