staging: comedi: das08_cs: move the comedi_driver variable
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 2 Jul 2012 22:48:26 +0000 (15:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 22:51:20 +0000 (15:51 -0700)
Move the comedi_driver variable to remove the need for the
forward declarations. Add some whitespace to the declaration
for aesthetic reasons.

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>
drivers/staging/comedi/drivers/das08_cs.c

index f2f33e1ea516aa2acbd06a8ebe5e7993f12dc0c3..9ec9b122f9793a9e4ab48f5e1bbacce780727f3e 100644 (file)
@@ -62,19 +62,6 @@ static struct pcmcia_device *cur_dev;
 
 #define thisboard ((const struct das08_board_struct *)dev->board_ptr)
 
-static int das08_cs_attach(struct comedi_device *dev,
-                          struct comedi_devconfig *it);
-
-static struct comedi_driver driver_das08_cs = {
-       .driver_name = "das08_cs",
-       .module = THIS_MODULE,
-       .attach = das08_cs_attach,
-       .detach = das08_common_detach,
-       .board_name = &das08_cs_boards[0].name,
-       .num_names = ARRAY_SIZE(das08_cs_boards),
-       .offset = sizeof(struct das08_board_struct),
-};
-
 static int das08_cs_attach(struct comedi_device *dev,
                           struct comedi_devconfig *it)
 {
@@ -104,6 +91,16 @@ static int das08_cs_attach(struct comedi_device *dev,
        return das08_common_attach(dev, iobase);
 }
 
+static struct comedi_driver driver_das08_cs = {
+       .driver_name    = "das08_cs",
+       .module         = THIS_MODULE,
+       .attach         = das08_cs_attach,
+       .detach         = das08_common_detach,
+       .board_name     = &das08_cs_boards[0].name,
+       .num_names      = ARRAY_SIZE(das08_cs_boards),
+       .offset         = sizeof(struct das08_board_struct),
+};
+
 static int das08_pcmcia_config_loop(struct pcmcia_device *p_dev,
                                void *priv_data)
 {