Searched refs:ADC_FRAC_BITS (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/iio/light/
H A Dtsl2563.c44 #define ADC_FRAC_BITS 14 macro
46 /* Given number of 1/10000's in ADC_FRAC_BITS precision. */
47 #define FRAC10K(f) (((f) * (1L << (ADC_FRAC_BITS))) / (10000))
434 ratio = ch0 ? ((ch1 << ADC_FRAC_BITS) / ch0) : ULONG_MAX; tsl2563_adc_to_lux()
441 return (unsigned int) (lux >> ADC_FRAC_BITS); tsl2563_adc_to_lux()

Completed in 52 milliseconds