staging: comedi: refactor dt282x driver to remove forward declarations
authorH Hartley Sweeten <hartleys@visionengravers.com>
Sat, 5 May 2012 00:02:38 +0000 (17:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 May 2012 20:33:41 +0000 (13:33 -0700)
commite0eaa10d4d23e35a2bf6ac4b3dff81ae30b0d7e5
tree98fd64ff623bc69d918d9b66088010ddcc99ab59
parent15362c5ec49bbb5d7b244d2db2e1779f3220c04a
staging: comedi: refactor dt282x driver to remove forward declarations

Move the struct comedi_driver and variables to the end of the
source. This is more typical of how other drivers are written and
removes the need for the forward declarations.

Convert the driver to use the module_comedi_driver() macro which
makes the code smaller and a bit simpler.

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