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)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:38:53 +0000 (21:38 -0800)
commit0b3d8b46607cf697091ef3b2742d9dfc49b89f55
tree5da6c54143a6d3955ee70f13198b1a76f52d44ec
parentf5c6caac3f40ef6d14ed15f886838336ca5b213c
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