staging: comedi: refactor dt2814 driver and use module_comedi_driver
authorH Hartley Sweeten <hartleys@visionengravers.com>
Sat, 5 May 2012 00:09:02 +0000 (17:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 May 2012 20:33:41 +0000 (13:33 -0700)
commit7806012e97edf47e87eb42058878d8e574f7461f
treef5e0ff7cc6f9fc17d43ccf81a6a24d7fc28d177c
parente0eaa10d4d23e35a2bf6ac4b3dff81ae30b0d7e5
staging: comedi: refactor dt2814 driver and use module_comedi_driver

Move the struct comedi_driver to the end of the source and refactor
the code to remove 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/dt2814.c