diff options
author | Michal Nazarewicz <mina86@mina86.com> | 2010-10-07 07:05:21 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 13:21:49 -0400 |
commit | 8fa7fd74ef398370383df276ca41082ba35aafd8 (patch) | |
tree | eff3040f8e4b7ec1d2c611d811f790a2a96071ce /drivers/usb/storage/scsiglue.c | |
parent | 1992de83e375acc789daf66b7b72a812a5235b75 (diff) |
USB: storage: Use USB_ prefix instead of US_ prefix
This commit changes prefix for some of the USB mass storage
class related macros (ie. USB_SC_ for subclass and USB_PR_
for class).
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>
Diffstat (limited to 'drivers/usb/storage/scsiglue.c')
-rw-r--r-- | drivers/usb/storage/scsiglue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c index d8d98cfecada..e80362d148f3 100644 --- a/drivers/usb/storage/scsiglue.c +++ b/drivers/usb/storage/scsiglue.c | |||
@@ -113,7 +113,7 @@ static int slave_alloc (struct scsi_device *sdev) | |||
113 | * Let the scanning code know if this target merely sets | 113 | * Let the scanning code know if this target merely sets |
114 | * Peripheral Device Type to 0x1f to indicate no LUN. | 114 | * Peripheral Device Type to 0x1f to indicate no LUN. |
115 | */ | 115 | */ |
116 | if (us->subclass == US_SC_UFI) | 116 | if (us->subclass == USB_SC_UFI) |
117 | sdev->sdev_target->pdt_1f_for_no_lun = 1; | 117 | sdev->sdev_target->pdt_1f_for_no_lun = 1; |
118 | 118 | ||
119 | return 0; | 119 | return 0; |
@@ -176,7 +176,7 @@ static int slave_configure(struct scsi_device *sdev) | |||
176 | /* Disk-type devices use MODE SENSE(6) if the protocol | 176 | /* Disk-type devices use MODE SENSE(6) if the protocol |
177 | * (SubClass) is Transparent SCSI, otherwise they use | 177 | * (SubClass) is Transparent SCSI, otherwise they use |
178 | * MODE SENSE(10). */ | 178 | * MODE SENSE(10). */ |
179 | if (us->subclass != US_SC_SCSI && us->subclass != US_SC_CYP_ATACB) | 179 | if (us->subclass != USB_SC_SCSI && us->subclass != USB_SC_CYP_ATACB) |
180 | sdev->use_10_for_ms = 1; | 180 | sdev->use_10_for_ms = 1; |
181 | 181 | ||
182 | /* Many disks only accept MODE SENSE transfer lengths of | 182 | /* Many disks only accept MODE SENSE transfer lengths of |
@@ -245,7 +245,7 @@ static int slave_configure(struct scsi_device *sdev) | |||
245 | * capacity will be decremented or is correct. */ | 245 | * capacity will be decremented or is correct. */ |
246 | if (!(us->fflags & (US_FL_FIX_CAPACITY | US_FL_CAPACITY_OK | | 246 | if (!(us->fflags & (US_FL_FIX_CAPACITY | US_FL_CAPACITY_OK | |
247 | US_FL_SCM_MULT_TARG)) && | 247 | US_FL_SCM_MULT_TARG)) && |
248 | us->protocol == US_PR_BULK) | 248 | us->protocol == USB_PR_BULK) |
249 | us->use_last_sector_hacks = 1; | 249 | us->use_last_sector_hacks = 1; |
250 | } else { | 250 | } else { |
251 | 251 | ||
@@ -261,7 +261,7 @@ static int slave_configure(struct scsi_device *sdev) | |||
261 | * scsi_level == 0 (UNKNOWN). Hence such devices must necessarily | 261 | * scsi_level == 0 (UNKNOWN). Hence such devices must necessarily |
262 | * be single-LUN. | 262 | * be single-LUN. |
263 | */ | 263 | */ |
264 | if ((us->protocol == US_PR_CB || us->protocol == US_PR_CBI) && | 264 | if ((us->protocol == USB_PR_CB || us->protocol == USB_PR_CBI) && |
265 | sdev->scsi_level == SCSI_UNKNOWN) | 265 | sdev->scsi_level == SCSI_UNKNOWN) |
266 | us->max_lun = 0; | 266 | us->max_lun = 0; |
267 | 267 | ||