]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: Add helper macro for usb_composite_driver boilerplate
authorTobias Klauser <tklauser@distanz.ch>
Wed, 9 Jul 2014 16:09:55 +0000 (18:09 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 10 Jul 2014 13:36:52 +0000 (08:36 -0500)
commitcc37ed2fb20190979c1024e32fe1ba9fa2b78011
tree1b21a6414f8be7bdc97d7a63ec2a6858942a2c05
parentb4e77928b3f50e393f4bf1946b29a6a71a10a76b
usb: gadget: Add helper macro for usb_composite_driver boilerplate

Introduce the module_usb_composite_driver macro as a convenience macro
for USB gadget composite driver modules, similar to module_usb_driver.
It is intended to be used by drivers which init/exit section does
nothing but calling usb_composite_probe/usb_composite_unrregister. By
using this macro it is possible to eliminate a few lines of boilerplate
code per USB gadget composite driver.

Based on 30931a4d ("USB: Add helper macro for usb_driver boilerplate")
which introduced the according macro for USB drivers.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Felipe Balbi <balbi@ti.com>
include/linux/usb/composite.h