staging: comedi: daqboard2000: remove range_daqboard2000_ao
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 19 Sep 2012 01:47:34 +0000 (18:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Sep 2012 08:41:43 +0000 (09:41 +0100)
This comedi_lrange is the same as the global range_bipolar10
exported by the comedi core. Use that range 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>
drivers/staging/comedi/drivers/daqboard2000.c

index 687ccb1f80987baf551cae2e2fd261e7dc30ba0f..3ea184e702cb49d2901e7c7153310405c6a0ac22 100644 (file)
@@ -165,11 +165,6 @@ static const struct comedi_lrange range_daqboard2000_ai = { 13, {
                                                                 }
 };
 
-static const struct comedi_lrange range_daqboard2000_ao = { 1, {
-                                                               RANGE(-10, 10)
-                                                               }
-};
-
 /*
  * Register Memory Map
  */
@@ -816,7 +811,7 @@ static int daqboard2000_attach_pci(struct comedi_device *dev,
        s->maxdata = 0xffff;
        s->insn_read = daqboard2000_ao_insn_read;
        s->insn_write = daqboard2000_ao_insn_write;
-       s->range_table = &range_daqboard2000_ao;
+       s->range_table = &range_bipolar10;
 
        s = &dev->subdevices[2];
        result = subdev_8255_init(dev, s, daqboard2000_8255_cb,