summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-10-24 16:32:54 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-24 19:35:50 -0700
commit0963fa1c83474557e6e868fbe56ddd53c99fb929 (patch)
tree9e97f1b39d792d6bfee3422e7b77f7d6b7c3333a /drivers
parent8545d2a8117f9d8cff9e066310125f6e93503edb (diff)
downloadlwn-0963fa1c83474557e6e868fbe56ddd53c99fb929.tar.gz
lwn-0963fa1c83474557e6e868fbe56ddd53c99fb929.zip
staging: comedi: cb_pcidda: cleanup the boardinfo
For aesthetic reasons, add some whitespace to the boardinfo to improve readability. Also, remove the cut-and-paste comment from the skel driver. 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/cb_pcidda.c70
1 files changed, 30 insertions, 40 deletions
diff --git a/drivers/staging/comedi/drivers/cb_pcidda.c b/drivers/staging/comedi/drivers/cb_pcidda.c
index 2af32783e00b..f1aa9c943157 100644
--- a/drivers/staging/comedi/drivers/cb_pcidda.c
+++ b/drivers/staging/comedi/drivers/cb_pcidda.c
@@ -125,11 +125,6 @@ static const struct comedi_lrange cb_pcidda_ranges = {
}
};
-/*
- * Board descriptions for two imaginary boards. Describing the
- * boards in this way is optional, and completely driver-dependent.
- * Some drivers use arrays such as this, other do not.
- */
struct cb_pcidda_board {
const char *name;
unsigned short device_id;
@@ -139,41 +134,36 @@ struct cb_pcidda_board {
static const struct cb_pcidda_board cb_pcidda_boards[] = {
{
- .name = "pci-dda02/12",
- .device_id = PCI_DEVICE_ID_DDA02_12,
- .ao_chans = 2,
- .ao_bits = 12,
- },
- {
- .name = "pci-dda04/12",
- .device_id = PCI_DEVICE_ID_DDA04_12,
- .ao_chans = 4,
- .ao_bits = 12,
- },
- {
- .name = "pci-dda08/12",
- .device_id = PCI_DEVICE_ID_DDA08_12,
- .ao_chans = 8,
- .ao_bits = 12,
- },
- {
- .name = "pci-dda02/16",
- .device_id = PCI_DEVICE_ID_DDA02_16,
- .ao_chans = 2,
- .ao_bits = 16,
- },
- {
- .name = "pci-dda04/16",
- .device_id = PCI_DEVICE_ID_DDA04_16,
- .ao_chans = 4,
- .ao_bits = 16,
- },
- {
- .name = "pci-dda08/16",
- .device_id = PCI_DEVICE_ID_DDA08_16,
- .ao_chans = 8,
- .ao_bits = 16,
- },
+ .name = "pci-dda02/12",
+ .device_id = PCI_DEVICE_ID_DDA02_12,
+ .ao_chans = 2,
+ .ao_bits = 12,
+ }, {
+ .name = "pci-dda04/12",
+ .device_id = PCI_DEVICE_ID_DDA04_12,
+ .ao_chans = 4,
+ .ao_bits = 12,
+ }, {
+ .name = "pci-dda08/12",
+ .device_id = PCI_DEVICE_ID_DDA08_12,
+ .ao_chans = 8,
+ .ao_bits = 12,
+ }, {
+ .name = "pci-dda02/16",
+ .device_id = PCI_DEVICE_ID_DDA02_16,
+ .ao_chans = 2,
+ .ao_bits = 16,
+ }, {
+ .name = "pci-dda04/16",
+ .device_id = PCI_DEVICE_ID_DDA04_16,
+ .ao_chans = 4,
+ .ao_bits = 16,
+ }, {
+ .name = "pci-dda08/16",
+ .device_id = PCI_DEVICE_ID_DDA08_16,
+ .ao_chans = 8,
+ .ao_bits = 16,
+ },
};
struct cb_pcidda_private {