staging: comedi: ni_mio_common: use comedi provided range_bipolar5
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 3 Apr 2013 20:39:34 +0000 (13:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 21:13:30 +0000 (14:13 -0700)
Remove the private range, range_ni_S_ai_6143, in this driver and use
the comedi provided range_bipolar5 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/ni_mio_common.c

index ca52b759fb9e96f8326e89477154c6f5173226d0..0f8d05c35391b9d7e563302b2229ac14d749e9e0 100644 (file)
@@ -189,11 +189,6 @@ static const struct comedi_lrange range_ni_M_ai_628x = { 7, {
                                                             }
 };
 
-static const struct comedi_lrange range_ni_S_ai_6143 = { 1, {
-                                                            RANGE(-5, +5),
-                                                            }
-};
-
 static const struct comedi_lrange range_ni_E_ao_ext = { 4, {
                                                            RANGE(-10, 10),
                                                            RANGE(0, 10),
@@ -210,7 +205,7 @@ static const struct comedi_lrange *const ni_range_lkup[] = {
        [ai_gain_611x] = &range_ni_E_ai_611x,
        [ai_gain_622x] = &range_ni_M_ai_622x,
        [ai_gain_628x] = &range_ni_M_ai_628x,
-       [ai_gain_6143] = &range_ni_S_ai_6143
+       [ai_gain_6143] = &range_bipolar5
 };
 
 static int ni_dio_insn_config(struct comedi_device *dev,