USB: gadget: f_mtp: Move all setup handling to mtp_ctrlrequest
authorMike Lockwood <lockwood@android.com>
Thu, 21 Jul 2011 00:08:28 +0000 (17:08 -0700)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:21:38 +0000 (12:21 -0800)
commit7e2ad6fd575e375a68deef3ba08a402c77eda5ac
treef59a2b823d12d13ff1c69a1143c337f2d4647e3c
parentd68f9e3211bdce6becbc11c6ba38642ac3982cd1
USB: gadget: f_mtp: Move all setup handling to mtp_ctrlrequest

The composite driver no longer sends setup requests to functions if the
destination is USB_RECIP_DEVICE, so we need to handle the requests
here instead of the function's setup callback.

Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/f_mtp.c