usb: gadget: bind UDC by name passed via usb_gadget_driver structure
authorRuslan Bilovol <ruslan.bilovol@gmail.com>
Mon, 23 Nov 2015 08:56:35 +0000 (09:56 +0100)
committerFelipe Balbi <balbi@ti.com>
Wed, 16 Dec 2015 16:07:26 +0000 (10:07 -0600)
commit2284b29d3d9dd16490909962574d7f3fef83fd97
tree715e9d269eebd1a9f4be625d875609640f8ffed5
parent59f042f644c5aa10b65b7881966bed78c5c82923
usb: gadget: bind UDC by name passed via usb_gadget_driver structure

Introduce new 'udc_name' member to usb_gadget_driver structure.
The 'udc_name' is a name of UDC that usb_gadget_driver should
be bound to. If udc_name is NULL, it will be bound to any
available UDC.

Tested-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/udc-core.c
include/linux/usb/gadget.h