usb: gadget: mtp/ptp: Migrate functions to the USB_FUNCTION interface
authorBadhri Jagan Sridharan <Badhri@google.com>
Tue, 18 Nov 2014 05:11:23 +0000 (21:11 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:06 +0000 (13:52 -0800)
commit7e3ab4a4692faea484ae0c8b87a46ec668504f72
treefe314a8ac049090a70f7d8122ac1bdeba4409cc2
parent24134b26ba1051df06c4f722d2f6b0301f83aff2
usb: gadget: mtp/ptp: Migrate functions to the USB_FUNCTION interface

This patch adds support to use mtp/ptp gadget functions
through the DECLARE_USB_FUNCTION_INIT interface.

enabling USB_CONFIGFS_F_MTP config compiles f_mtp.c
thereby providing support for MTP gadget

enabling USB_CONFIGFS_F_PTP config compiles f_ptp.c
thereby providing support for PTP gadget

Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I38d7b570e8886d155ef10cd2c839b2232dcb3158
drivers/usb/gadget/Kconfig
drivers/usb/gadget/Makefile
drivers/usb/gadget/f_mtp.c
drivers/usb/gadget/f_mtp.h [new file with mode: 0644]
drivers/usb/gadget/f_ptp.c [new file with mode: 0644]