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)
committerMike Lockwood <lockwood@android.com>
Thu, 21 Jul 2011 00:17:39 +0000 (17:17 -0700)
commitd74348cebf7b883a872c5f0cfdf815855e08db5a
tree759b0b022db0a5071f20ff36e7f1cbc42ce87988
parent07b02fbd98dcc988eb3379b916832473bd8bdfc1
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