Home
last modified time | relevance | path

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

/linux/drivers/iio/addac/
H A Dstx104.c205 unsigned int adc_config; in stx104_read_raw() local
211 err = regmap_read(priv->aio_ctl_map, STX104_ADC_CONFIGURATION, &adc_config); in stx104_read_raw()
215 *val = BIT(u8_get_bits(adc_config, STX104_GAIN)); in stx104_read_raw()
268 err = regmap_read(priv->aio_ctl_map, STX104_ADC_CONFIGURATION, &adc_config); in stx104_read_raw()
272 *val = (u8_get_bits(adc_config, STX104_ADBU) == STX104_BIPOLAR) ? -32768 : 0; in stx104_read_raw()
276 err = regmap_read(priv->aio_ctl_map, STX104_ADC_CONFIGURATION, &adc_config); in stx104_read_raw()
281 *val2 = (u8_get_bits(adc_config, STX104_ADBU) == STX104_BIPOLAR) ? 14 : 15; in stx104_read_raw()
282 *val2 += u8_get_bits(adc_config, STX104_GAIN); in stx104_read_raw()
/linux/drivers/iio/light/
H A Dsi1133.c205 u8 adc_config[6]; member
558 u8 adc_config) in si1133_chan_set_adcconfig() argument
563 adc_config); in si1133_chan_set_adcconfig()
567 data->adc_config[adc] = adc_config; in si1133_chan_set_adcconfig()
575 u32 adc_config; in si1133_update_adcconfig() local
579 &adc_config); in si1133_update_adcconfig()
583 adc_config &= ~mask; in si1133_update_adcconfig()
584 adc_config |= (value << shift); in si1133_update_adcconfig()
586 return si1133_chan_set_adcconfig(data, adc, adc_config); in si1133_update_adcconfig()
591 if ((mux & data->adc_config[adc]) == mux) in si1133_set_adcmux()