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

staging: comedi: dt3000: cleanup the boardinfo

Add some whitespace to make the code more readable.
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 ad25f545
...@@ -91,7 +91,6 @@ static const struct comedi_lrange range_dt3000_ai_pgl = { ...@@ -91,7 +91,6 @@ static const struct comedi_lrange range_dt3000_ai_pgl = {
}; };
struct dt3k_boardtype { struct dt3k_boardtype {
const char *name; const char *name;
unsigned int device_id; unsigned int device_id;
int adchan; int adchan;
...@@ -103,67 +102,68 @@ struct dt3k_boardtype { ...@@ -103,67 +102,68 @@ struct dt3k_boardtype {
}; };
static const struct dt3k_boardtype dt3k_boardtypes[] = { static const struct dt3k_boardtype dt3k_boardtypes[] = {
{.name = "dt3001", {
.device_id = PCI_DEVICE_ID_DT3001, .name = "dt3001",
.adchan = 16, .device_id = PCI_DEVICE_ID_DT3001,
.adbits = 12, .adchan = 16,
.adrange = &range_dt3000_ai, .adbits = 12,
.ai_speed = 3000, .adrange = &range_dt3000_ai,
.dachan = 2, .ai_speed = 3000,
.dabits = 12, .dachan = 2,
}, .dabits = 12,
{.name = "dt3001-pgl", }, {
.device_id = PCI_DEVICE_ID_DT3001_PGL, .name = "dt3001-pgl",
.adchan = 16, .device_id = PCI_DEVICE_ID_DT3001_PGL,
.adbits = 12, .adchan = 16,
.adrange = &range_dt3000_ai_pgl, .adbits = 12,
.ai_speed = 3000, .adrange = &range_dt3000_ai_pgl,
.dachan = 2, .ai_speed = 3000,
.dabits = 12, .dachan = 2,
}, .dabits = 12,
{.name = "dt3002", }, {
.device_id = PCI_DEVICE_ID_DT3002, .name = "dt3002",
.adchan = 32, .device_id = PCI_DEVICE_ID_DT3002,
.adbits = 12, .adchan = 32,
.adrange = &range_dt3000_ai, .adbits = 12,
.ai_speed = 3000, .adrange = &range_dt3000_ai,
}, .ai_speed = 3000,
{.name = "dt3003", }, {
.device_id = PCI_DEVICE_ID_DT3003, .name = "dt3003",
.adchan = 64, .device_id = PCI_DEVICE_ID_DT3003,
.adbits = 12, .adchan = 64,
.adrange = &range_dt3000_ai, .adbits = 12,
.ai_speed = 3000, .adrange = &range_dt3000_ai,
.dachan = 2, .ai_speed = 3000,
.dabits = 12, .dachan = 2,
}, .dabits = 12,
{.name = "dt3003-pgl", }, {
.device_id = PCI_DEVICE_ID_DT3003_PGL, .name = "dt3003-pgl",
.adchan = 64, .device_id = PCI_DEVICE_ID_DT3003_PGL,
.adbits = 12, .adchan = 64,
.adrange = &range_dt3000_ai_pgl, .adbits = 12,
.ai_speed = 3000, .adrange = &range_dt3000_ai_pgl,
.dachan = 2, .ai_speed = 3000,
.dabits = 12, .dachan = 2,
}, .dabits = 12,
{.name = "dt3004", }, {
.device_id = PCI_DEVICE_ID_DT3004, .name = "dt3004",
.adchan = 16, .device_id = PCI_DEVICE_ID_DT3004,
.adbits = 16, .adchan = 16,
.adrange = &range_dt3000_ai, .adbits = 16,
.ai_speed = 10000, .adrange = &range_dt3000_ai,
.dachan = 2, .ai_speed = 10000,
.dabits = 12, .dachan = 2,
}, .dabits = 12,
{.name = "dt3005", /* a.k.a. 3004-200 */ }, {
.device_id = PCI_DEVICE_ID_DT3005, .name = "dt3005", /* a.k.a. 3004-200 */
.adchan = 16, .device_id = PCI_DEVICE_ID_DT3005,
.adbits = 16, .adchan = 16,
.adrange = &range_dt3000_ai, .adbits = 16,
.ai_speed = 5000, .adrange = &range_dt3000_ai,
.dachan = 2, .ai_speed = 5000,
.dabits = 12, .dachan = 2,
}, .dabits = 12,
},
}; };
#define DT3000_SIZE (4*0x1000) #define DT3000_SIZE (4*0x1000)
......
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