This is a follow-up to this thread: http://www.spinics.net/lists/linux-usb/msg82418.html which is a prerequisite for applying the patches being sent here. I am creating a separate series because the above mentioned thread becomes very long. The prerequisite for providing the configfs interface for USB gadgets and all their users is converting them to the new function interface from Sebastian. Just changing the function interface is not enough for gadgets to be converted to configfs, though. After the functions are converted, some more work is required to arrive at a gadget configurable through configfs. This patch series serves the purpose stated above for OBEX and phonet and it supersedes this series: http://www.spinics.net/lists/linux-usb/msg82990.html change history: v1..v2: - fixes in OBEX conversion - convert phonet v1: - convert OBEX So far I have converted the following functions and gadgets: USB function | users (gadgets) ===================================================================== f_mass_storage | g_mass_storage, acm_ms, g_multi f_ncm | g_ncm f_eem | g_ether f_ecm | g_cdc, g_ether, g_ffs, g_multi, g_nokia f_subset | g_ether, g_ffs, g_multi f_rndis | g_ether, g_ffs, g_multi f_fs | g_ffs f_serial | g_serial f_obex | g_serial, g_nokia f_phonet | g_nokia Still to be converted: USB function | users (gadgets) ===================================================================== f_uac1 | g_audio f_uac2 | g_audio f_midi | g_midi f_hid | g_hid f_uvc | g_webcam Andrzej Pietrasiewicz (8): usb/gadget: f_obex: convert to new function interface with backward compatibility usb/gadget: serial: convert to new interface of f_obex usb/gadget: nokia: convert to new interface of f_obex usb/gadget: f_obex: remove compatibility layer usb/gadget: phonet: move global dev variable to its user usb/gadget: f_phonet: convert to new function interface with backward compatibility usb/gadget: nokia: convert to new interface of f_phonet usb/gadget: f_phonet: remove compatibility layer drivers/usb/gadget/Kconfig | 9 ++ drivers/usb/gadget/Makefile | 4 + drivers/usb/gadget/f_obex.c | 147 +++++++++++++++++++++--------------- drivers/usb/gadget/f_phonet.c | 79 +++++++++++++------ drivers/usb/gadget/nokia.c | 171 ++++++++++++++++++++++++++++------------- drivers/usb/gadget/serial.c | 41 +--------- drivers/usb/gadget/u_phonet.h | 11 ++- 7 files changed, 284 insertions(+), 178 deletions(-) -- 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