Home
last modified time | relevance | path

Searched refs:adc0 (Results 1 – 2 of 2) sorted by relevance

/linux-3.4.99/drivers/staging/iio/light/
Dtsl2563.c314 u16 adc0, adc1; in tsl2563_get_adc() local
340 adc0 = ret; in tsl2563_get_adc()
348 retry = tsl2563_adjust_gainlevel(chip, adc0); in tsl2563_get_adc()
351 chip->data0 = normalize_adc(adc0, chip->gainlevel->gaintime); in tsl2563_get_adc()
429 static unsigned int adc_to_lux(u32 adc0, u32 adc1) in adc_to_lux() argument
432 unsigned long ratio, lux, ch0 = adc0, ch1 = adc1; in adc_to_lux()
/linux-3.4.99/drivers/mfd/
Dmc13xxx-core.c588 u32 adc0, adc1, old_adc0; in mc13xxx_adc_do_conversion() local
608 adc0 = MC13XXX_ADC0_ADINC1 | MC13XXX_ADC0_ADINC2; in mc13xxx_adc_do_conversion()
616 adc0 |= MC13XXX_ADC0_ADREFEN | MC13XXX_ADC0_TSMOD0 | in mc13xxx_adc_do_conversion()
622 adc0 |= old_adc0 & MC13XXX_ADC0_CONFIG_MASK; in mc13xxx_adc_do_conversion()
628 adc0 |= old_adc0 & MC13XXX_ADC0_CONFIG_MASK; in mc13xxx_adc_do_conversion()
645 mc13xxx_reg_write(mc13xxx, MC13XXX_ADC0, adc0); in mc13xxx_adc_do_conversion()