RE: [RFC 0/3] Gadget directory cleanup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: linux-usb-owner@xxxxxxxxxxxxxxx [mailto:linux-usb-owner@xxxxxxxxxxxxxxx] On Behalf Of Felipe Balbi
> Sent: Tuesday, May 13, 2014 8:08 AM
> 
> On Tue, May 13, 2014 at 10:45:15AM +0200, 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.
> >
> > What I would like to ask is:
> >
> > 1) Do you find the idea useful?
> 
> sure, but please regerenate the patches with rename detection (-C -M)...
> that'll be a lot easier to review.

Hi Andrzej,

I thinks it's pretty ugly that you added "../", "../udc/" to a lot of
the #include statements. Instead, can't you extend the include path in
the Makefile to include those directories as well?

-- 
Paul

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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux