diff options
-rw-r--r-- | include/scsi/scsi_device.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index 3c8f898b160e..ab7acbe80960 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h | |||
@@ -387,6 +387,10 @@ static inline int scsi_device_qas(struct scsi_device *sdev) | |||
387 | return 0; | 387 | return 0; |
388 | return sdev->inquiry[56] & 0x02; | 388 | return sdev->inquiry[56] & 0x02; |
389 | } | 389 | } |
390 | static inline int scsi_device_enclosure(struct scsi_device *sdev) | ||
391 | { | ||
392 | return sdev->inquiry[6] & (1<<6); | ||
393 | } | ||
390 | 394 | ||
391 | #define MODULE_ALIAS_SCSI_DEVICE(type) \ | 395 | #define MODULE_ALIAS_SCSI_DEVICE(type) \ |
392 | MODULE_ALIAS("scsi:t-" __stringify(type) "*") | 396 | MODULE_ALIAS("scsi:t-" __stringify(type) "*") |