Skip to content
Snippets Groups Projects
  • Greg Kroah-Hartman's avatar
    USB: Add helper macro for usb_driver boilerplate · f3a6a4b6
    Greg Kroah-Hartman authored
    
    This patch introduces the module_usb_driver macro which is a convenience
    macro for USB driver modules similar to module_platform_driver. It is
    intended to be used by drivers which init/exit section does nothing but
    register/unregister the USB driver. By using this macro it is possible
    to eliminate a few lines of boilerplate code per USB driver.
    
    Based on work done by Lars-Peter Clausen <lars@metafoo.de> for other
    busses (i2c and spi).
    
    Cc: Lars-Peter Clausen <lars@metafoo.de>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    f3a6a4b6
Code owners
Assign users and groups as approvers for specific file changes. Learn more.