Re: [PATCH 5/6] usb: gadget: storage_common: Make fsg_lun_is_open() a function.

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

 



On Thu, Nov 01, 2012 at 02:46:56PM +0100, Michal Nazarewicz wrote:
> 
> ie. f_mass_storage.c is the 5th biggest file in drivers/usb/gadget, so
> if anything, I would rather split it further into pieces than merge it
> with storage_common.c adding another 700 lines and producing the biggest
> file in drivers/usb/gadget (or something close to it).

This are just 800 lines or say 30% of total. It includes static descriptors
which are used and other stuff which belongs and is local to the function.
Please merge these two files into f_mass.*. If you feel like splitting code
and get the file smaller then I suggest to split by functionality (i.e. move
the command parsing stuff out).
I tried this with TCM: I had one file the gadget / descriptor thingy, one for
BOT and one file for UAS. At the time the code was merge upstream I figured
out that the target maintainer merged everything in one file…
Unfortunately the tcm gadget did not make it in your top10.

Sebastian
--
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