staging: comedi: das800: use comedi provided range_bipolar5
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 3 Apr 2013 20:37:21 +0000 (13:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 21:13:29 +0000 (14:13 -0700)
Remove the private range, range_das800_ai, 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/das800.c

index 38f625be812a6d71585c47cb45d1c3738b3e442a..1cf9ddd908383ae1c73bf1129ee65b29498b2a02 100644 (file)
@@ -114,14 +114,6 @@ struct das800_board {
        int resolution;
 };
 
-/* analog input ranges */
-static const struct comedi_lrange range_das800_ai = {
-       1,
-       {
-        RANGE(-5, 5),
-        }
-};
-
 static const struct comedi_lrange range_das801_ai = {
        9,
        {
@@ -187,13 +179,13 @@ static const struct das800_board das800_boards[] = {
        {
         .name = "das-800",
         .ai_speed = 25000,
-        .ai_range = &range_das800_ai,
+        .ai_range = &range_bipolar5,
         .resolution = 12,
         },
        {
         .name = "cio-das800",
         .ai_speed = 20000,
-        .ai_range = &range_das800_ai,
+        .ai_range = &range_bipolar5,
         .resolution = 12,
         },
        {