]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: dmm32at: use module_comedi_driver
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 3 Jul 2012 01:10:46 +0000 (18:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 22:51:20 +0000 (15:51 -0700)
commit17f49dd46c5db2912d2dd985f400f6237fd30255
tree1fa5b3e9436e0cddc28e19ab4622b6083ae5e406
parent6f88a20a7ff0b8724b9832c139fc06095e71b9bf
staging: comedi: dmm32at: use module_comedi_driver

Convert driver to use the module_comedi_driver() macro to remove
some of the boilerplate.

Move the comedi_driver variable to the end of the file to keep it
with the module_comedi_driver() macro. This also removes the need
for some of the forward declarations. While moving the variable:

1) strip out the unnecessary cut-and-paste skel driver comments
2) add whitespace to improve the readability
3) rename the variable from driver* to *driver

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/dmm32at.c