Searched refs:CALIB_FRAC_BITS (Results 1 – 1 of 1) sorted by relevance
37 #define CALIB_FRAC_BITS 10 macro39 #define CALIB_FRAC_HALF (1 << (CALIB_FRAC_BITS - 1))41 #define CALIB_FRAC(n, b) (((n) << CALIB_FRAC_BITS) / (b))354 CALIB_FRAC_HALF) >> CALIB_FRAC_BITS); in tsl2563_calib_to_sysfs()359 return (((u32) value) << CALIB_FRAC_BITS) / CALIB_BASE_SYSFS; in tsl2563_calib_from_sysfs()437 scaled >>= CALIB_FRAC_BITS; in tsl2563_calib_adc()