]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: OS descriptors: provide interface directory names
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Wed, 18 Jun 2014 12:24:49 +0000 (14:24 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 19 Jun 2014 15:06:48 +0000 (10:06 -0500)
commit8e74cb87a3c8378f45acb0fcb3df7ae720ff4bbd
tree8d877c323144572dc6cc5d534f2b0df563845c97
parent21a88b71f12fa4f75ff7a2f5fa74336cf2176bfc
usb: gadget: OS descriptors: provide interface directory names

Function's interface directories need to be created when the function
directory is created, but interface numbers are not known until
the gadget is ready and bound to udc, so we cannot use numbers
as part of interface directory names.
Let the client decide what names to use.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/configfs.c
drivers/usb/gadget/configfs.h
drivers/usb/gadget/f_rndis.c