Searched refs:temp_frac (Results 1 – 2 of 2) sorted by relevance
165 int32_t temp_frac; in ens210_channel_get() local171 temp_frac = sys_le16_to_cpu(drv_data->temp.val) * (1000000 / 64); in ens210_channel_get()172 temp_frac -= 273150000; in ens210_channel_get()174 val->val1 = temp_frac / 1000000; in ens210_channel_get()175 val->val2 = temp_frac % 1000000; in ens210_channel_get()
134 int32_t temp_frac = temp_23 & BIT_MASK(23); in si7006_channel_get() local139 temp_frac -= BIT(23); in si7006_channel_get()143 val->val2 = (temp_frac * 15625ULL) >> 17; in si7006_channel_get()