• A
    Input: serio - add helper macro for serio_driver boilerplate · fa7f86d1
    Axel Lin 提交于
    This patch introduces the module_serio_driver macro which is a
    convenience macro for serio 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 serio driver. By using this macro it is possible to eliminate
    a few lines of boilerplate code per serio driver.
    
    Based on work done by Lars-Peter Clausen <lars@metafoo.de> for
    other buses (i2c and spi).
    Signed-off-by: NAxel Lin <axel.lin@gmail.com>
    Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
    fa7f86d1
serio.h 5.6 KB