Commit ff0f7ad5 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: dt9812: use comedi provided range_bipolar10

Remove the private ranges, dt9812_10_a{in,out}_range, in this driver
and use the comedi provided range_bipolar10 instead.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f737279b
...@@ -303,21 +303,11 @@ struct slot_dt9812 { ...@@ -303,21 +303,11 @@ struct slot_dt9812 {
struct comedi_dt9812 *comedi; struct comedi_dt9812 *comedi;
}; };
static const struct comedi_lrange dt9812_10_ain_range = { 1, {
BIP_RANGE(10),
}
};
static const struct comedi_lrange dt9812_2pt5_ain_range = { 1, { static const struct comedi_lrange dt9812_2pt5_ain_range = { 1, {
UNI_RANGE(2.5), UNI_RANGE(2.5),
} }
}; };
static const struct comedi_lrange dt9812_10_aout_range = { 1, {
BIP_RANGE(10),
}
};
static const struct comedi_lrange dt9812_2pt5_aout_range = { 1, { static const struct comedi_lrange dt9812_2pt5_aout_range = { 1, {
UNI_RANGE(2.5), UNI_RANGE(2.5),
} }
...@@ -912,7 +902,7 @@ static int dt9812_comedi_open(struct comedi_device *dev) ...@@ -912,7 +902,7 @@ static int dt9812_comedi_open(struct comedi_device *dev)
switch (devpriv->slot->usb->device) { switch (devpriv->slot->usb->device) {
case 0:{ case 0:{
s->maxdata = 4095; s->maxdata = 4095;
s->range_table = &dt9812_10_ain_range; s->range_table = &range_bipolar10;
} }
break; break;
case 1:{ case 1:{
...@@ -927,7 +917,7 @@ static int dt9812_comedi_open(struct comedi_device *dev) ...@@ -927,7 +917,7 @@ static int dt9812_comedi_open(struct comedi_device *dev)
switch (devpriv->slot->usb->device) { switch (devpriv->slot->usb->device) {
case 0:{ case 0:{
s->maxdata = 4095; s->maxdata = 4095;
s->range_table = &dt9812_10_aout_range; s->range_table = &range_bipolar10;
} }
break; break;
case 1:{ case 1:{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment