Skip to content

Commit 3323b71

Browse files
mina86gregkh
authored andcommitted
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 <[email protected]> Cc: Alan Stern <[email protected]> Cc: Matthew Wilcox <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 115bb1f commit 3323b71

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

drivers/usb/gadget/storage_common.c

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454

5555

5656
#include <asm/unaligned.h>
57+
#include <linux/usb/storage.h>
5758

5859

5960
/*
@@ -156,19 +157,6 @@
156157
#define TYPE_DISK 0x00
157158
#define TYPE_CDROM 0x05
158159

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-
172160
/* Bulk-only data structures */
173161

174162
/* Command Block Wrapper */

0 commit comments

Comments
 (0)