]> git.baikalelectronics.ru Git - kernel.git/commit
USB: gadget: storage: reuse definitions from scsi.h header file
authorMichal Nazarewicz <mina86@mina86.com>
Thu, 7 Oct 2010 12:46:15 +0000 (14:46 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:22:07 +0000 (10:22 -0700)
commita32283f630544a588cb8d0f83e80093aedf7ac9c
tree0c8ed32e970e9cbbb4cc64981cba9ae2694f6377
parent4e4324cac256b2da8552abf555c7970349ddbb40
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