Searched refs:CALIB_FRAC_BITS (Results 1 – 1 of 1) sorted by relevance
50 #define CALIB_FRAC_BITS (10) macro52 #define CALIB_FRAC_HALF (1 << (CALIB_FRAC_BITS - 1))54 #define CALIB_FRAC(n, b) (((n) << CALIB_FRAC_BITS) / (b))387 CALIB_FRAC_HALF) >> CALIB_FRAC_BITS); in calib_to_sysfs()392 return (((u32) value) << CALIB_FRAC_BITS) / CALIB_BASE_SYSFS; in calib_from_sysfs()503 scaled >>= CALIB_FRAC_BITS; in calib_adc()