staging: comedi: dt282x: move boardinfo declaration
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 20 Jun 2014 20:12:35 +0000 (13:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2014 00:08:17 +0000 (20:08 -0400)
For asethetics, move the boardinfo declaration closer to the struct
definition.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/dt282x.c

index 424eebb06a41a2398459e3955c1346d393c205c3..aa6789dce7b188f6ccb876806d2db0e983121beb 100644 (file)
@@ -216,6 +216,136 @@ struct dt282x_board {
        int dabits;
 };
 
+static const struct dt282x_board boardtypes[] = {
+       {
+               .name           = "dt2821",
+               .adbits         = 12,
+               .adchan_se      = 16,
+               .adchan_di      = 8,
+               .ai_speed       = 20000,
+               .ispgl          = 0,
+               .dachan         = 2,
+               .dabits         = 12,
+       }, {
+               .name           = "dt2821-f",
+               .adbits         = 12,
+               .adchan_se      = 16,
+               .adchan_di      = 8,
+               .ai_speed       = 6500,
+               .ispgl          = 0,
+               .dachan         = 2,
+               .dabits         = 12,
+       }, {
+               .name           = "dt2821-g",
+               .adbits         = 12,
+               .adchan_se      = 16,
+               .adchan_di      = 8,
+               .ai_speed       = 4000,
+               .ispgl          = 0,
+               .dachan         = 2,
+               .dabits         = 12,
+       }, {
+               .name           = "dt2823",
+               .adbits         = 16,
+               .adchan_se      = 0,
+               .adchan_di      = 4,
+               .ai_speed       = 10000,
+               .ispgl          = 0,
+               .dachan         = 2,
+               .dabits         = 16,
+       }, {
+               .name           = "dt2824-pgh",
+               .adbits         = 12,
+               .adchan_se      = 16,
+               .adchan_di      = 8,
+               .ai_speed       = 20000,
+               .ispgl          = 0,
+               .dachan         = 0,
+               .dabits         = 0,
+       }, {
+               .name           = "dt2824-pgl",
+               .adbits         = 12,
+               .adchan_se      = 16,
+               .adchan_di      = 8,
+               .ai_speed       = 20000,
+               .ispgl          = 1,
+               .dachan         = 0,
+               .dabits         = 0,
+       }, {
+               .name           = "dt2825",
+               .adbits         = 12,
+               .adchan_se      = 16,
+               .adchan_di      = 8,
+               .ai_speed       = 20000,
+               .ispgl          = 1,
+               .dachan         = 2,
+               .dabits         = 12,
+       }, {
+               .name           = "dt2827",
+               .adbits         = 16,
+               .adchan_se      = 0,
+               .adchan_di      = 4,
+               .ai_speed       = 10000,
+               .ispgl          = 0,
+               .dachan         = 2,
+               .dabits         = 12,
+       }, {
+               .name           = "dt2828",
+               .adbits         = 12,
+               .adchan_se      = 4,
+               .adchan_di      = 0,
+               .ai_speed       = 10000,
+               .ispgl          = 0,
+               .dachan         = 2,
+               .dabits         = 12,
+       }, {
+               .name           = "dt2829",
+               .adbits         = 16,
+               .adchan_se      = 8,
+               .adchan_di      = 0,
+               .ai_speed       = 33250,
+               .ispgl          = 0,
+               .dachan         = 2,
+               .dabits         = 16,
+       }, {
+               .name           = "dt21-ez",
+               .adbits         = 12,
+               .adchan_se      = 16,
+               .adchan_di      = 8,
+               .ai_speed       = 10000,
+               .ispgl          = 0,
+               .dachan         = 2,
+               .dabits         = 12,
+       }, {
+               .name           = "dt23-ez",
+               .adbits         = 16,
+               .adchan_se      = 16,
+               .adchan_di      = 8,
+               .ai_speed       = 10000,
+               .ispgl          = 0,
+               .dachan         = 0,
+               .dabits         = 0,
+       }, {
+               .name           = "dt24-ez",
+               .adbits         = 12,
+               .adchan_se      = 16,
+               .adchan_di      = 8,
+               .ai_speed       = 10000,
+               .ispgl          = 0,
+               .dachan         = 0,
+               .dabits         = 0,
+       }, {
+               .name           = "dt24-ez-pgl",
+               .adbits         = 12,
+               .adchan_se      = 16,
+               .adchan_di      = 8,
+               .ai_speed       = 10000,
+               .ispgl          = 1,
+               .dachan         = 0,
+               .dabits         = 0,
+       },
+};
+
 struct dt282x_private {
        int ad_2scomp;          /* we have 2's comp jumper set  */
        int da0_2scomp;         /* same, for DAC0               */
@@ -1227,136 +1357,6 @@ static void dt282x_detach(struct comedi_device *dev)
        comedi_legacy_detach(dev);
 }
 
-static const struct dt282x_board boardtypes[] = {
-       {
-               .name           = "dt2821",
-               .adbits         = 12,
-               .adchan_se      = 16,
-               .adchan_di      = 8,
-               .ai_speed       = 20000,
-               .ispgl          = 0,
-               .dachan         = 2,
-               .dabits         = 12,
-       }, {
-               .name           = "dt2821-f",
-               .adbits         = 12,
-               .adchan_se      = 16,
-               .adchan_di      = 8,
-               .ai_speed       = 6500,
-               .ispgl          = 0,
-               .dachan         = 2,
-               .dabits         = 12,
-       }, {
-               .name           = "dt2821-g",
-               .adbits         = 12,
-               .adchan_se      = 16,
-               .adchan_di      = 8,
-               .ai_speed       = 4000,
-               .ispgl          = 0,
-               .dachan         = 2,
-               .dabits         = 12,
-       }, {
-               .name           = "dt2823",
-               .adbits         = 16,
-               .adchan_se      = 0,
-               .adchan_di      = 4,
-               .ai_speed       = 10000,
-               .ispgl          = 0,
-               .dachan         = 2,
-               .dabits         = 16,
-       }, {
-               .name           = "dt2824-pgh",
-               .adbits         = 12,
-               .adchan_se      = 16,
-               .adchan_di      = 8,
-               .ai_speed       = 20000,
-               .ispgl          = 0,
-               .dachan         = 0,
-               .dabits         = 0,
-       }, {
-               .name           = "dt2824-pgl",
-               .adbits         = 12,
-               .adchan_se      = 16,
-               .adchan_di      = 8,
-               .ai_speed       = 20000,
-               .ispgl          = 1,
-               .dachan         = 0,
-               .dabits         = 0,
-       }, {
-               .name           = "dt2825",
-               .adbits         = 12,
-               .adchan_se      = 16,
-               .adchan_di      = 8,
-               .ai_speed       = 20000,
-               .ispgl          = 1,
-               .dachan         = 2,
-               .dabits         = 12,
-       }, {
-               .name           = "dt2827",
-               .adbits         = 16,
-               .adchan_se      = 0,
-               .adchan_di      = 4,
-               .ai_speed       = 10000,
-               .ispgl          = 0,
-               .dachan         = 2,
-               .dabits         = 12,
-       }, {
-               .name           = "dt2828",
-               .adbits         = 12,
-               .adchan_se      = 4,
-               .adchan_di      = 0,
-               .ai_speed       = 10000,
-               .ispgl          = 0,
-               .dachan         = 2,
-               .dabits         = 12,
-       }, {
-               .name           = "dt2829",
-               .adbits         = 16,
-               .adchan_se      = 8,
-               .adchan_di      = 0,
-               .ai_speed       = 33250,
-               .ispgl          = 0,
-               .dachan         = 2,
-               .dabits         = 16,
-       }, {
-               .name           = "dt21-ez",
-               .adbits         = 12,
-               .adchan_se      = 16,
-               .adchan_di      = 8,
-               .ai_speed       = 10000,
-               .ispgl          = 0,
-               .dachan         = 2,
-               .dabits         = 12,
-       }, {
-               .name           = "dt23-ez",
-               .adbits         = 16,
-               .adchan_se      = 16,
-               .adchan_di      = 8,
-               .ai_speed       = 10000,
-               .ispgl          = 0,
-               .dachan         = 0,
-               .dabits         = 0,
-       }, {
-               .name           = "dt24-ez",
-               .adbits         = 12,
-               .adchan_se      = 16,
-               .adchan_di      = 8,
-               .ai_speed       = 10000,
-               .ispgl          = 0,
-               .dachan         = 0,
-               .dabits         = 0,
-       }, {
-               .name           = "dt24-ez-pgl",
-               .adbits         = 12,
-               .adchan_se      = 16,
-               .adchan_di      = 8,
-               .ai_speed       = 10000,
-               .ispgl          = 1,
-               .dachan         = 0,
-               .dabits         = 0,
-       },
-};
-
 static struct comedi_driver dt282x_driver = {
        .driver_name    = "dt282x",
        .module         = THIS_MODULE,