};
struct rti800_private {
- enum {
- adc_diff, adc_pseudodiff, adc_singleended
- } adc_mux;
enum {
adc_bipolar10, adc_bipolar5, adc_unipolar10
} adc_range;
return -ENOMEM;
dev->private = devpriv;
- devpriv->adc_mux = it->options[2];
devpriv->adc_range = it->options[3];
devpriv->adc_coding = it->options[4];
devpriv->dac0_range = it->options[5];
/* ai subdevice */
s->type = COMEDI_SUBD_AI;
s->subdev_flags = SDF_READABLE | SDF_GROUND;
- s->n_chan = (devpriv->adc_mux ? 16 : 8);
+ s->n_chan = (it->options[2] ? 16 : 8);
s->insn_read = rti800_ai_insn_read;
s->maxdata = 0xfff;
switch (devpriv->adc_range) {