From: H Hartley Sweeten Date: Tue, 4 Jun 2013 01:03:12 +0000 (-0700) Subject: staging: comedi: pcmuio: tidy up the boardinfo X-Git-Tag: MMI-PSA29.97-13-9~14152^2~288 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fbe3bb17b9f9e18b771c30449916807c4c25e308;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: comedi: pcmuio: tidy up the boardinfo Remove the boilerplate comment about the boardinfo struct. For aesthetic reasons, move the boardinfo declaration near the struct definition. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/pcmuio.c b/drivers/staging/comedi/drivers/pcmuio.c index 79a4d11a5c1c..02ffc78e9900 100644 --- a/drivers/staging/comedi/drivers/pcmuio.c +++ b/drivers/staging/comedi/drivers/pcmuio.c @@ -145,11 +145,6 @@ #define PAGE_ENAB 2 #define PAGE_INT_ID 3 -/* - * 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 pcmuio_board { const char *name; const int num_asics; @@ -157,6 +152,18 @@ struct pcmuio_board { const int num_ports; }; +static const struct pcmuio_board pcmuio_boards[] = { + { + .name = "pcmuio48", + .num_asics = 1, + .num_ports = 6, + }, { + .name = "pcmuio96", + .num_asics = 2, + .num_ports = 12, + }, +}; + /* this structure is for data unique to this subdevice. */ struct pcmuio_subdev_private { /* mapping of halfwords (bytes) in port/chanarray to iobase */ @@ -934,18 +941,6 @@ static void pcmuio_detach(struct comedi_device *dev) comedi_legacy_detach(dev); } -static const struct pcmuio_board pcmuio_boards[] = { - { - .name = "pcmuio48", - .num_asics = 1, - .num_ports = 6, - }, { - .name = "pcmuio96", - .num_asics = 2, - .num_ports = 12, - }, -}; - static struct comedi_driver pcmuio_driver = { .driver_name = "pcmuio", .module = THIS_MODULE,