Searched refs:temp_code (Results 1 – 1 of 1) sorted by relevance
517 int temp_code; in temp_to_code() local522 temp_code = -EINVAL; in temp_to_code()528 temp_code = (temp - 25) * in temp_to_code()533 temp_code = temp + data->temp_error1 - 25; in temp_to_code()536 temp_code = temp + EXYNOS_TMU_DEF_CODE_TO_TEMP_OFFSET; in temp_to_code()540 return temp_code; in temp_to_code()547 static int code_to_temp(struct exynos_tmu_data *data, u8 temp_code) in code_to_temp() argument554 if (temp_code < 75 || temp_code > 175) { in code_to_temp()561 temp = (temp_code - data->temp_error1) * (85 - 25) / in code_to_temp()565 temp = temp_code - data->temp_error1 + 25; in code_to_temp()[all …]