diff options
author | Michal Nazarewicz <mina86@mina86.com> | 2010-10-07 07:05:24 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 13:21:50 -0400 |
commit | 3323b7107ece794eb3e16111b583f5afb6749278 (patch) | |
tree | d4642532f2a305fbabb21bfcc25cdef93ae7d94b | |
parent | 115bb1ffa54c3934f3617bdd4e4dfc68b11e1e69 (diff) |
USB: gadget: file_storage: reuse definitions from a header file
This commit changes storage_common.c and file_storage.c to
reuse definitions from linux/usb/storage.h header file.
Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/usb/gadget/storage_common.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/usb/gadget/storage_common.c b/drivers/usb/gadget/storage_common.c index d7856c599d5a..0a7df3db71f1 100644 --- a/drivers/usb/gadget/storage_common.c +++ b/drivers/usb/gadget/storage_common.c | |||
@@ -54,6 +54,7 @@ | |||
54 | 54 | ||
55 | 55 | ||
56 | #include <asm/unaligned.h> | 56 | #include <asm/unaligned.h> |
57 | #include <linux/usb/storage.h> | ||
57 | 58 | ||
58 | 59 | ||
59 | /* | 60 | /* |
@@ -156,19 +157,6 @@ | |||
156 | #define TYPE_DISK 0x00 | 157 | #define TYPE_DISK 0x00 |
157 | #define TYPE_CDROM 0x05 | 158 | #define TYPE_CDROM 0x05 |
158 | 159 | ||
159 | /* USB protocol value = the transport method */ | ||
160 | #define USB_PR_CBI 0x00 /* Control/Bulk/Interrupt */ | ||
161 | #define USB_PR_CB 0x01 /* Control/Bulk w/o interrupt */ | ||
162 | #define USB_PR_BULK 0x50 /* Bulk-only */ | ||
163 | |||
164 | /* USB subclass value = the protocol encapsulation */ | ||
165 | #define USB_SC_RBC 0x01 /* Reduced Block Commands (flash) */ | ||
166 | #define USB_SC_8020 0x02 /* SFF-8020i, MMC-2, ATAPI (CD-ROM) */ | ||
167 | #define USB_SC_QIC 0x03 /* QIC-157 (tape) */ | ||
168 | #define USB_SC_UFI 0x04 /* UFI (floppy) */ | ||
169 | #define USB_SC_8070 0x05 /* SFF-8070i (removable) */ | ||
170 | #define USB_SC_SCSI 0x06 /* Transparent SCSI */ | ||
171 | |||
172 | /* Bulk-only data structures */ | 160 | /* Bulk-only data structures */ |
173 | 161 | ||
174 | /* Command Block Wrapper */ | 162 | /* Command Block Wrapper */ |