Searched refs:degc (Results 1 – 1 of 1) sorted by relevance
290 static inline u32 degc_to_code(int degc, const struct tsens_sensor *s) in degc_to_code() argument292 u64 code = div_u64(((u64)degc * s->slope + s->offset), SLOPE_FACTOR); in degc_to_code()294 pr_debug("%s: raw_code: 0x%llx, degc:%d\n", __func__, code, degc); in degc_to_code()300 int degc, num, den; in code_to_degc() local306 degc = num + (den / 2); in code_to_degc()308 degc = num - (den / 2); in code_to_degc()310 degc = num; in code_to_degc()312 degc /= den; in code_to_degc()314 return degc; in code_to_degc()