Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/iio/light/
H A Dtsl2563.c31 #define ADC_FRAC_BITS 14 macro
33 /* Given number of 1/10000's in ADC_FRAC_BITS precision. */
34 #define FRAC10K(f) (((f) * (1L << (ADC_FRAC_BITS))) / (10000))
421 ratio = ch0 ? ((ch1 << ADC_FRAC_BITS) / ch0) : ULONG_MAX; in tsl2563_adc_to_lux()
428 return (unsigned int) (lux >> ADC_FRAC_BITS); in tsl2563_adc_to_lux()
/kernel/linux/linux-6.6/drivers/iio/light/
H A Dtsl2563.c34 #define ADC_FRAC_BITS 14 macro
36 /* Given number of 1/10000's in ADC_FRAC_BITS precision. */
37 #define FRAC10K(f) (((f) * BIT(ADC_FRAC_BITS)) / (10000))
427 ratio = ch0 ? ((ch1 << ADC_FRAC_BITS) / ch0) : ULONG_MAX; in tsl2563_adc_to_lux()
434 return (unsigned int) (lux >> ADC_FRAC_BITS); in tsl2563_adc_to_lux()

Completed in 3 milliseconds