aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2011-06-01 22:17:36 -0400
committerMike Lockwood <lockwood@android.com>2011-06-17 22:27:20 -0400
commitcf7addf29b41f90d979267b2c5111ec6d137231a (patch)
tree539c14ee0f04dd3af9df6723349dcc399067be2c /include/linux/usb
parentba3673bf79dbaa02a48a9ba7618d071b364bbf5e (diff)
downloadkernel_samsung_espresso10-cf7addf29b41f90d979267b2c5111ec6d137231a.zip
kernel_samsung_espresso10-cf7addf29b41f90d979267b2c5111ec6d137231a.tar.gz
kernel_samsung_espresso10-cf7addf29b41f90d979267b2c5111ec6d137231a.tar.bz2
USB: gadget: f_mtp: Add PTP variant of MTP USB function
This is the same as MTP but with PTP interface descriptor. Also removed obsolete ioctl for switching between MTP and PTP mode Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/f_mtp.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/usb/f_mtp.h b/include/linux/usb/f_mtp.h
index e4fd880..fdf828c 100644
--- a/include/linux/usb/f_mtp.h
+++ b/include/linux/usb/f_mtp.h
@@ -18,10 +18,6 @@
#ifndef __LINUX_USB_F_MTP_H
#define __LINUX_USB_F_MTP_H
-/* Constants for MTP_SET_INTERFACE_MODE */
-#define MTP_INTERFACE_MODE_MTP 0
-#define MTP_INTERFACE_MODE_PTP 1
-
struct mtp_file_range {
/* file descriptor for file to transfer */
@@ -45,8 +41,6 @@ struct mtp_event {
* The file is created if it does not exist.
*/
#define MTP_RECEIVE_FILE _IOW('M', 1, struct mtp_file_range)
-/* Sets the driver mode to either MTP or PTP */
-#define MTP_SET_INTERFACE_MODE _IOW('M', 2, int)
/* Sends an event to the host via the interrupt endpoint */
#define MTP_SEND_EVENT _IOW('M', 3, struct mtp_event)