Commit 885d8bce authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: ni_mio_cs: cleanup the boardinfo declaration

For aesthetic reasons, reformat the boardinfo declaration and
add some whitespace. Remove all the information that is set to
'0' as this is the default.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 678a6ff3
...@@ -65,104 +65,84 @@ See the notes in the ni_atmio.o driver. ...@@ -65,104 +65,84 @@ See the notes in the ni_atmio.o driver.
#define MAX_N_CALDACS 32 #define MAX_N_CALDACS 32
static const struct ni_board_struct ni_boards[] = { static const struct ni_board_struct ni_boards[] = {
{.device_id = 0x010d, {
.name = "DAQCard-ai-16xe-50", .device_id = 0x010d,
.n_adchan = 16, .name = "DAQCard-ai-16xe-50",
.adbits = 16, .n_adchan = 16,
.ai_fifo_depth = 1024, .adbits = 16,
.alwaysdither = 0, .ai_fifo_depth = 1024,
.gainlkup = ai_gain_8, .gainlkup = ai_gain_8,
.ai_speed = 5000, .ai_speed = 5000,
.n_aochan = 0, .num_p0_dio_channels = 8,
.aobits = 0, .caldac = { dac8800, dac8043 },
.ao_fifo_depth = 0, }, {
.ao_unipolar = 0, .device_id = 0x010c,
.num_p0_dio_channels = 8, .name = "DAQCard-ai-16e-4",
.has_8255 = 0, .n_adchan = 16,
.caldac = {dac8800, dac8043}, .adbits = 12,
}, .ai_fifo_depth = 1024,
{.device_id = 0x010c, .gainlkup = ai_gain_16,
.name = "DAQCard-ai-16e-4", .ai_speed = 4000,
.n_adchan = 16, .num_p0_dio_channels = 8,
.adbits = 12, .caldac = { mb88341 }, /* verified */
.ai_fifo_depth = 1024, }, {
.alwaysdither = 0, .device_id = 0x02c4,
.gainlkup = ai_gain_16, .name = "DAQCard-6062E",
.ai_speed = 4000, .n_adchan = 16,
.n_aochan = 0, .adbits = 12,
.aobits = 0, .ai_fifo_depth = 8192,
.ao_fifo_depth = 0, .gainlkup = ai_gain_16,
.ao_unipolar = 0, .ai_speed = 2000,
.num_p0_dio_channels = 8, .n_aochan = 2,
.has_8255 = 0, .aobits = 12,
.caldac = {mb88341}, /* verified */ .ao_fifo_depth = 2048,
}, .ao_range_table = &range_bipolar10,
{.device_id = 0x02c4, .ao_speed = 1176,
.name = "DAQCard-6062E", .num_p0_dio_channels = 8,
.n_adchan = 16, .caldac = { ad8804_debug }, /* verified */
.adbits = 12, }, {
.ai_fifo_depth = 8192, /* specs incorrect! */
.alwaysdither = 0, .device_id = 0x075e,
.gainlkup = ai_gain_16, .name = "DAQCard-6024E",
.ai_speed = 2000, .n_adchan = 16,
.n_aochan = 2, .adbits = 12,
.aobits = 12, .ai_fifo_depth = 1024,
.ao_fifo_depth = 2048, .gainlkup = ai_gain_4,
.ao_range_table = &range_bipolar10, .ai_speed = 5000,
.ao_unipolar = 0, .n_aochan = 2,
.ao_speed = 1176, .aobits = 12,
.num_p0_dio_channels = 8, .ao_range_table = &range_bipolar10,
.has_8255 = 0, .ao_speed = 1000000,
.caldac = {ad8804_debug}, /* verified */ .num_p0_dio_channels = 8,
}, .caldac = { ad8804_debug },
{.device_id = 0x075e, }, {
.name = "DAQCard-6024E", /* specs incorrect! */ /* specs incorrect! */
.n_adchan = 16, .device_id = 0x0245,
.adbits = 12, .name = "DAQCard-6036E",
.ai_fifo_depth = 1024, .n_adchan = 16,
.alwaysdither = 0, .adbits = 16,
.gainlkup = ai_gain_4, .ai_fifo_depth = 1024,
.ai_speed = 5000, .alwaysdither = 1,
.n_aochan = 2, .gainlkup = ai_gain_4,
.aobits = 12, .ai_speed = 5000,
.ao_fifo_depth = 0, .n_aochan = 2,
.ao_range_table = &range_bipolar10, .aobits = 16,
.ao_unipolar = 0, .ao_range_table = &range_bipolar10,
.ao_speed = 1000000, .ao_speed = 1000000,
.num_p0_dio_channels = 8, .num_p0_dio_channels = 8,
.has_8255 = 0, .caldac = { ad8804_debug },
.caldac = {ad8804_debug},
},
{.device_id = 0x0245,
.name = "DAQCard-6036E", /* specs incorrect! */
.n_adchan = 16,
.adbits = 16,
.ai_fifo_depth = 1024,
.alwaysdither = 1,
.gainlkup = ai_gain_4,
.ai_speed = 5000,
.n_aochan = 2,
.aobits = 16,
.ao_fifo_depth = 0,
.ao_range_table = &range_bipolar10,
.ao_unipolar = 0,
.ao_speed = 1000000,
.num_p0_dio_channels = 8,
.has_8255 = 0,
.caldac = {ad8804_debug},
}, },
#if 0 #if 0
{.device_id = 0x0000, /* unknown */ {
.name = "DAQCard-6715", .device_id = 0x0000, /* unknown */
.n_adchan = 0, .name = "DAQCard-6715",
.n_aochan = 8, .n_aochan = 8,
.aobits = 12, .aobits = 12,
.ao_671x = 8192, .ao_671x = 8192,
.num_p0_dio_channels = 8, .num_p0_dio_channels = 8,
.caldac = {mb88341, mb88341}, .caldac = { mb88341, mb88341 },
}, },
#endif #endif
/* N.B. Update ni_mio_cs_ids[] when entries added above. */
}; };
#define interrupt_pin(a) 0 #define interrupt_pin(a) 0
......
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