This series creates the libcomposite and is based on "Towords libcomposite, v2" It addresses the review comments of "create libcomposite". The numbers were gather from "size" on each gadget before and after series. text data bss dec diff filename old new old new old new old new 0 13049 0 376 0 8 0 13433 ∞ 13433 libcomposite.ko 45974 33149 1516 1496 900 808 48390 35453 ~73 -12937 g_acm_ms.ko 12451 12451 660 660 56 56 13167 13167 100 0 gadgetfs.ko 20070 7218 1380 1304 184 56 21634 8578 ~39 -13056 g_audio.ko 34625 21838 1524 1536 564 424 36713 23798 ~64 -12915 g_cdc.ko 9869 8525 476 476 384 384 10729 9385 ~87 -1344 g_dbgp.ko 39697 26877 2210 2134 276 132 42183 29143 ~69 -13040 g_ether.ko 49719 37731 2364 2344 356 244 52439 40319 ~76 -12120 g_ffs.ko 25849 22972 1012 1012 136 136 26997 24120 ~89 -2877 g_file_storage.ko 18163 5368 944 900 212 72 19319 6340 ~32 -12979 g_hid.ko 35665 22896 1092 1080 492 416 37249 24392 ~65 -12857 g_mass_storage.ko 19275 6562 914 886 96 24 20285 7472 ~36 -12813 g_midi.ko 69522 56557 2840 2828 1000 936 73362 60321 ~82 -13041 g_multi.ko 27398 14735 1187 1167 212 80 28797 15982 ~55 -12815 g_ncm.ko 40515 27821 2244 2264 532 464 43291 30549 ~70 -12742 g_nokia.ko 21735 8993 2064 1996 700 588 24499 11577 ~47 -12922 g_printer.ko 27330 14512 1520 1452 532 364 29382 16328 ~55 -13054 g_serial.ko 24837 13016 993 1013 136 68 25966 14097 ~54 -11869 g_webcam.ko 20219 7426 1444 1400 244 108 21907 8934 ~40 -12973 g_zero.ko 26143 14508 1216 1192 148 80 27507 15780 ~57 -11727 tcm_usb_gadget.ko v2..v3: - different overwrite approach. Introduced struct usb_composite_overwrite and functions which sets VID/PID and the strings. This is mostly based on Michał idea. v1..v2: - hide libcomposite and use selects to enable it. Every gadget depends on it except gadgetfs (inode.c) - moved usb_gadget_controller_number() into a .c file. - s/USB_GADGET_COMPOSITE_OVERWRITE_VID_PID_BCD/USB_GADGET_COMPOSITE_OVERWRITE_OPTIONS it will be used for iSerial as well. - use put do while around USB_GADGET_COMPOSITE_OVERWRITE_OPTIONS - remove all global variables in finally create libcomposite 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