Lines Matching refs:channel_config
96 struct ads131e08_channel_config *channel_config; member
415 st->channel_config[i].pga_gain); in ads131e08_initial_config()
420 st->channel_config[i].mux); in ads131e08_initial_config()
530 *value /= st->channel_config[channel->address].pga_gain; in ads131e08_read_raw()
694 struct ads131e08_channel_config *channel_config; in ads131e08_alloc_channels() local
733 channel_config = devm_kcalloc(&st->spi->dev, num_channels, in ads131e08_alloc_channels()
734 sizeof(*channel_config), GFP_KERNEL); in ads131e08_alloc_channels()
735 if (!channel_config) in ads131e08_alloc_channels()
746 channel_config[i].pga_gain = ADS131E08_DEFAULT_PGA_GAIN; in ads131e08_alloc_channels()
752 channel_config[i].pga_gain = tmp; in ads131e08_alloc_channels()
757 channel_config[i].mux = ADS131E08_DEFAULT_MUX; in ads131e08_alloc_channels()
763 channel_config[i].mux = tmp; in ads131e08_alloc_channels()
784 st->channel_config = channel_config; in ads131e08_alloc_channels()