Commit 53a38e23 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: das1800: tidy up comedi_lrange tables

Tidy up the whitespace in the comedi_lrange tables.

Use the BIP_RANGE and UNI_RANGE macros instead of the more generic
RANGE macro to reduce possible typo errors.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0bb7781b
...@@ -178,30 +178,28 @@ enum { ...@@ -178,30 +178,28 @@ enum {
/* analog input ranges */ /* analog input ranges */
static const struct comedi_lrange range_ai_das1801 = { static const struct comedi_lrange range_ai_das1801 = {
8, 8, {
{ BIP_RANGE(5),
RANGE(-5, 5), BIP_RANGE(1),
RANGE(-1, 1), BIP_RANGE(0.1),
RANGE(-0.1, 0.1), BIP_RANGE(0.02),
RANGE(-0.02, 0.02), UNI_RANGE(5),
RANGE(0, 5), UNI_RANGE(1),
RANGE(0, 1), UNI_RANGE(0.1),
RANGE(0, 0.1), UNI_RANGE(0.02)
RANGE(0, 0.02),
} }
}; };
static const struct comedi_lrange range_ai_das1802 = { static const struct comedi_lrange range_ai_das1802 = {
8, 8, {
{ BIP_RANGE(10),
RANGE(-10, 10), BIP_RANGE(5),
RANGE(-5, 5), BIP_RANGE(2.5),
RANGE(-2.5, 2.5), BIP_RANGE(1.25),
RANGE(-1.25, 1.25), UNI_RANGE(10),
RANGE(0, 10), UNI_RANGE(5),
RANGE(0, 5), UNI_RANGE(2.5),
RANGE(0, 2.5), UNI_RANGE(1.25)
RANGE(0, 1.25),
} }
}; };
...@@ -445,10 +443,9 @@ struct das1800_private { ...@@ -445,10 +443,9 @@ struct das1800_private {
/* analog out range for 'ao' boards */ /* analog out range for 'ao' boards */
/* /*
static const struct comedi_lrange range_ao_2 = { static const struct comedi_lrange range_ao_2 = {
2, 2, {
{ BIP_RANGE(10),
RANGE(-10, 10), BIP_RANGE(5)
RANGE(-5, 5),
} }
}; };
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment