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>
}
};
-static const struct comedi_lrange range_usbdux_ao_range = { 1, {
- UNI_RANGE
- (2.5),
- }
-};
-
/*
* private structure of one subdevice
*/
/* 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;