USB: gadget: f_mtp: Add support for sending MTP header during file transfer
authorMike Lockwood <lockwood@android.com>
Thu, 14 Jul 2011 23:42:42 +0000 (19:42 -0400)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:38:50 +0000 (21:38 -0800)
commit761f7c709ed7c3afad269613e06df03d023d8d1c
treea53e60173ea1a964f2adb93c91935471ed5e5b7f
parent0a6e4edfda61241634e810b8319a0879ed651f25
USB: gadget: f_mtp: Add support for sending MTP header during file transfer

MTP_SEND_FILE_WITH_HEADER ioctl allows sending a file with the 12 byte header
prepended at the beginning.
This is to allow MTP to use a single packet for the data phase instead of two.

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