Commit 9cbde70c authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: dt2801: 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 be5bf027
...@@ -90,58 +90,42 @@ Configuration options: ...@@ -90,58 +90,42 @@ Configuration options:
#if 0 #if 0
/* ignore 'defined but not used' warning */ /* ignore 'defined but not used' warning */
static const struct comedi_lrange range_dt2801_ai_pgh_bipolar = { 4, { static const struct comedi_lrange range_dt2801_ai_pgh_bipolar = {
RANGE(-10, 4, {
10), BIP_RANGE(10),
RANGE(-5, BIP_RANGE(5),
5), BIP_RANGE(2.5),
RANGE BIP_RANGE(1.25)
(-2.5, }
2.5),
RANGE
(-1.25,
1.25),
}
}; };
#endif #endif
static const struct comedi_lrange range_dt2801_ai_pgl_bipolar = { 4, { static const struct comedi_lrange range_dt2801_ai_pgl_bipolar = {
RANGE(-10, 4, {
10), BIP_RANGE(10),
RANGE(-1, BIP_RANGE(1),
1), BIP_RANGE(0.1),
RANGE BIP_RANGE(0.02)
(-0.1, }
0.1),
RANGE
(-0.02,
0.02),
}
}; };
#if 0 #if 0
/* ignore 'defined but not used' warning */ /* ignore 'defined but not used' warning */
static const struct comedi_lrange range_dt2801_ai_pgh_unipolar = { 4, { static const struct comedi_lrange range_dt2801_ai_pgh_unipolar = {
RANGE(0, 4, {
10), UNI_RANGE(10),
RANGE(0, UNI_RANGE(5),
5), UNI_RANGE(2.5),
RANGE(0, UNI_RANGE(1.25)
2.5), }
RANGE(0,
1.25),
}
}; };
#endif #endif
static const struct comedi_lrange range_dt2801_ai_pgl_unipolar = { 4, { static const struct comedi_lrange range_dt2801_ai_pgl_unipolar = {
RANGE(0, 4, {
10), UNI_RANGE(10),
RANGE(0, UNI_RANGE(1),
1), UNI_RANGE(0.1),
RANGE(0, UNI_RANGE(0.02)
0.1), }
RANGE(0,
0.02),
}
}; };
struct dt2801_board { struct dt2801_board {
......
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