USB: gadget: storage: reuse definitions from scsi.h header file
commit0a6a717ceff67f887b16783ce891f5dcf846f1fc
authorMichal Nazarewicz <mina86@mina86.com>
Thu, 7 Oct 2010 12:46:15 +0000 (7 14:46 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:22:07 +0000 (22 10:22 -0700)
tree0c8ed32e970e9cbbb4cc64981cba9ae2694f6377
parent0a2b8a0d1101179fdebc974a7c72b514aede9d9d
USB: gadget: storage: reuse definitions from scsi.h header file

This commit changes storage_common.h, file_storage.c and
f_mass_storage.c to use definitions of SCSI commands from
scsi/scsi.h file instead of redefining the commands in
storage_common.c.

scsi/scsi.h header file was missing READ_FORMAT_CAPACITIES and
READ_HEADER so this commit also add those to the header.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/f_mass_storage.c
drivers/usb/gadget/file_storage.c
drivers/usb/gadget/storage_common.c
include/scsi/scsi.h