staging: comedi: Add helper macro for comedi_driver boilerplate
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 2 May 2012 00:20:04 +0000 (17:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 May 2012 22:55:24 +0000 (15:55 -0700)
commit204162572ff4a679a47c68a5d5b3ac2bcba3830e
tree55316da470056d5a2839af565d7eb1ef1eec0ccd
parente8ccc11fbd32d26884943ea2001c3dea6c7ea14a
staging: comedi: Add helper macro for comedi_driver boilerplate

Introduce the module_comedi_driver macro which is a convenience
macro for comedi driver modules similar to module_platform_driver.
It is intended to be used by drivers where the init/exit section
does nothing but register/unregister the comedi driver. By using
this macro it is possible to eliminate a few lines of boilerplate
code per comedi driver.

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/comedidev.h