mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 17:15:18 +07:00
staging: comedi: das1800: use comedi provided range_bipolar10
Remove the private range, range_ao_1, in this driver and use the comedi provided range_bipolar10 instead. 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
7cf24bb433
commit
5d5cabb675
@ -454,14 +454,6 @@ struct das1800_private {
|
|||||||
short ao_update_bits; /* remembers the last write to the 'update' dac */
|
short ao_update_bits; /* remembers the last write to the 'update' dac */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* analog out range for boards with basic analog out */
|
|
||||||
static const struct comedi_lrange range_ao_1 = {
|
|
||||||
1,
|
|
||||||
{
|
|
||||||
RANGE(-10, 10),
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* analog out range for 'ao' boards */
|
/* analog out range for 'ao' boards */
|
||||||
/*
|
/*
|
||||||
static const struct comedi_lrange range_ao_2 = {
|
static const struct comedi_lrange range_ao_2 = {
|
||||||
@ -1657,7 +1649,7 @@ static int das1800_attach(struct comedi_device *dev,
|
|||||||
s->subdev_flags = SDF_WRITABLE;
|
s->subdev_flags = SDF_WRITABLE;
|
||||||
s->n_chan = thisboard->ao_n_chan;
|
s->n_chan = thisboard->ao_n_chan;
|
||||||
s->maxdata = (1 << thisboard->resolution) - 1;
|
s->maxdata = (1 << thisboard->resolution) - 1;
|
||||||
s->range_table = &range_ao_1;
|
s->range_table = &range_bipolar10;
|
||||||
s->insn_write = das1800_ao_winsn;
|
s->insn_write = das1800_ao_winsn;
|
||||||
} else {
|
} else {
|
||||||
s->type = COMEDI_SUBD_UNUSED;
|
s->type = COMEDI_SUBD_UNUSED;
|
||||||
|
Loading…
Reference in New Issue
Block a user