On Tue, 13 May 2014, Andrzej Pietrasiewicz wrote:

> Dear All - in general,
> @Felipe - in particular,
> 
> I would like to ask your opinion on rearranging the way the source code files
> are located in the drivers/usb/gadget directory.
> 
> These are the reasons for doing such a change:
> 
> - there are ~130 source code files already in a clean tree
> 
> - when all gadgets and some udc drivers are built as modules then,
> including the by-products of the build (*.o, *.ko, *.mod.c, .*.cmd),
> the number easily grows to ~500 files
> 
> - files serving different purpose (udc chip drivers, actual gadget functions'
> implementations, legacy gadgets) are located side-by-side which might cause
> confusion
> 
> - gadget's Kconfig and Makefile tend to be lengthy.
> 
> What I suggest is to create separate subdirectories:
> 
> - "udc" for UDC chip drivers
> - "function" for actual usb functions' implementations
> - "legacy" for gadgets compiled as statically composed modules
> 
> while at the gadget's root level there are files related to the composite
> framework.
> 
> After the patches are applied the gadget subdirectory looks much cleaner.

This sounds like a great idea to me.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to