aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2011-12-02 13:57:53 +0800
committerJohn Stultz <john.stultz@linaro.org>2012-02-14 14:26:41 -0800
commita130b4c0f896a1920c5ad417f2cb912711eaec1d (patch)
treed6e3ef349cf1c4e6327efb7c92dbdd29ab04ab0b /include
parentb0e0f61edf385a3fa96f47c1bf3ff8529f321368 (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 426c6b5cc06..e4fd8806638 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 {