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@xxxxxxxxxxxxxxxxxxx> Cc: Ian Abbott <abbotti@xxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/staging/comedi/drivers/dt9812.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/staging/comedi/drivers/dt9812.c b/drivers/staging/comedi/drivers/dt9812.c index 57b4519..9a0fb0a 100644 --- a/drivers/staging/comedi/drivers/dt9812.c +++ b/drivers/staging/comedi/drivers/dt9812.c @@ -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), } @@ -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:{ @@ -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:{ -- 1.8.1.4 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel