Skip to content

Commit

Permalink
staging: comedi: usbduxsigma: use comedi provided range_unipolar2_5
Browse files Browse the repository at this point in the history
Remove the private range, range_usbdux_ao_range, in this driver and use
the comedi provided range_unipolar2_5 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 50708d9 commit ebde53e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions drivers/staging/comedi/drivers/usbduxsigma.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,6 @@ static const struct comedi_lrange range_usbdux_ai_range = { 1, {
}
};

static const struct comedi_lrange range_usbdux_ao_range = { 1, {
UNI_RANGE
(2.5),
}
};

/*
* private structure of one subdevice
*/
Expand Down Expand Up @@ -2269,7 +2263,7 @@ static int usbduxsigma_attach_common(struct comedi_device *dev,
/* 8 bit resolution */
s->maxdata = 0x00ff;
/* unipolar range */
s->range_table = (&range_usbdux_ao_range);
s->range_table = &range_unipolar2_5;
/* callback */
s->do_cmdtest = usbdux_ao_cmdtest;
s->do_cmd = usbdux_ao_cmd;
Expand Down

0 comments on commit ebde53e

Please sign in to comment.