staging: comedi: rti800: remove adc_mux from private data
The 'adc_mux' is only used in the attach of the board. Remove it from the private data. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
849d1ea4ae
commit
14aa6cda07
1 changed files with 1 additions and 5 deletions
|
@ -139,9 +139,6 @@ static const struct rti800_board rti800_boardtypes[] = {
|
|||
};
|
||||
|
||||
struct rti800_private {
|
||||
enum {
|
||||
adc_diff, adc_pseudodiff, adc_singleended
|
||||
} adc_mux;
|
||||
enum {
|
||||
adc_bipolar10, adc_bipolar5, adc_unipolar10
|
||||
} adc_range;
|
||||
|
@ -316,7 +313,6 @@ static int rti800_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
|||
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];
|
||||
|
@ -333,7 +329,7 @@ static int rti800_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
|||
/* 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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue