Skip to content

Commit

Permalink
staging: comedi: dt9812: use comedi provided range_bipolar10
Browse files Browse the repository at this point in the history
Remove the private ranges, dt9812_10_a{in,out}_range, 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>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 5, 2013
1 parent f737279 commit ff0f7ad
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions drivers/staging/comedi/drivers/dt9812.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,21 +303,11 @@ struct slot_dt9812 {
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, {
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, {
UNI_RANGE(2.5),
}
Expand Down Expand Up @@ -912,7 +902,7 @@ static int dt9812_comedi_open(struct comedi_device *dev)
switch (devpriv->slot->usb->device) {
case 0:{
s->maxdata = 4095;
s->range_table = &dt9812_10_ain_range;
s->range_table = &range_bipolar10;
}
break;
case 1:{
Expand All @@ -927,7 +917,7 @@ static int dt9812_comedi_open(struct comedi_device *dev)
switch (devpriv->slot->usb->device) {
case 0:{
s->maxdata = 4095;
s->range_table = &dt9812_10_aout_range;
s->range_table = &range_bipolar10;
}
break;
case 1:{
Expand Down

0 comments on commit ff0f7ad

Please sign in to comment.