Lines Matching refs:channel_cfg
186 const struct adc_channel_cfg *channel_cfg) in ads1112_channel_setup() argument
192 if (channel_cfg->channel_id != 0) { in ads1112_channel_setup()
196 if (channel_cfg->differential) { in ads1112_channel_setup()
197 if (channel_cfg->input_positive == 0 && channel_cfg->input_negative == 1) { in ads1112_channel_setup()
199 } else if (channel_cfg->input_positive == 2 && channel_cfg->input_negative == 3) { in ads1112_channel_setup()
205 if (channel_cfg->input_positive == 0) { in ads1112_channel_setup()
207 } else if (channel_cfg->input_positive == 1) { in ads1112_channel_setup()
209 } else if (channel_cfg->input_positive == 2) { in ads1112_channel_setup()
216 data->differential = channel_cfg->differential; in ads1112_channel_setup()
218 dr = ads1112_acq_time_to_dr(dev, channel_cfg->acquisition_time); in ads1112_channel_setup()
225 switch (channel_cfg->gain) { in ads1112_channel_setup()