staging: comedi: ni_labpc: move labpc_driver and labpc_pci_table
authorIan Abbott <abbotti@mev.co.uk>
Fri, 14 Sep 2012 16:34:13 +0000 (17:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Sep 2012 12:09:05 +0000 (05:09 -0700)
commit5e51f0db14b4a2013f4f64885191076475c5b86f
tree25ae1cbc167f778e629d54924c0d1c68597cbf8b
parent3faeeecbc85c7f4a2867bcdc65b8a598e2f4aa83
staging: comedi: ni_labpc: move labpc_driver and labpc_pci_table

Move the `labpc_driver` and `labpc_pci_table` variables nearer the
module initialization code near the bottom of the module for aesthetic
reasons and to avoid a forward declaration of `labpc_attach()`.

As a consequence, to avoid having to add a forward declaration of the
`labpc_driver` variable, change code that uses
`labpc_driver.driver_name` to use `DRV_NAME` instead, and change code
that uses `labpc_driver.num_names` to use `ARRAY_SIZE(labpc_boards)`
instead.

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