summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-11-16 17:14:32 -0500
committerMike Lockwood <lockwood@android.com>2010-11-17 09:29:20 -0500
commit3482be62e48ddd2182873b25989270eb9088a65f (patch)
tree9ec3ac91d123ac45ea93b629b18346e9361acb52 /include
parent32c1661893c0007af70f5b2ce1b890a7b1449f20 (diff)
USB: gadget: f_mtp: Support for file transfer length greater than 4 gigabytes
For backward compatibility with PTP, MTP is limited to a 32-bit file size. When transferring files greater than 4 gig, MTP uses 0xFFFFFFFF as the file size and the receiver reads until it receives a short packet. Expanded size of mtp_file_range.length to 64 bits and added support for writing zero length packets. Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/f_mtp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb/f_mtp.h b/include/linux/usb/f_mtp.h
index 426c6b5cc06a..e4fd88066389 100644
--- a/include/linux/usb/f_mtp.h
+++ b/include/linux/usb/f_mtp.h
@@ -29,7 +29,7 @@ struct mtp_file_range {
/* offset in file for start of transfer */
loff_t offset;
/* number of bytes to transfer */
- size_t length;
+ int64_t length;
};
struct mtp_event {