]> git.baikalelectronics.ru Git - kernel.git/commit
Input: gameport - add helper macro for gameport_driver boilerplate
authorAxel Lin <axel.lin@gmail.com>
Wed, 4 Apr 2012 06:51:08 +0000 (23:51 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 4 Apr 2012 16:25:44 +0000 (09:25 -0700)
commitd2f1492f546a0a04fda3f6ebea44f052a611fed8
tree0e08aff7f7a143819a21bd6ff8bd325c2bfc7770
parent92f6797fdc36c985eece95328239700142dbb612
Input: gameport - add helper macro for gameport_driver boilerplate

This patch introduces the module_gameport_driver macro which is a
convenience macro for gameport driver modules similar to
module_platform_driver. It is intended to be used by drivers
which init/exit section does nothing but registers/unregisters the
gameport driver. By using this macro it is possible to eliminate a
few lines of boilerplate code per gameport driver.

Based on work done by Lars-Peter Clausen <lars@metafoo.de> for
other buses (i2c and spi).

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
include/linux/gameport.h