Searched refs:SLOPE_FACTOR (Results 1 – 2 of 2) sorted by relevance
263 num *= SLOPE_FACTOR; in compute_intercept_slope()268 priv->sensor[i].offset = (p1[i] * SLOPE_FACTOR) - in compute_intercept_slope()278 u64 code = div_u64(((u64)degc * s->slope + s->offset), SLOPE_FACTOR); in degc_to_code()288 num = (adc_code * SLOPE_FACTOR) - s->offset; in code_to_degc()
15 #define SLOPE_FACTOR 1000 macro
Completed in 7 milliseconds