diff options
| author | Hannes Reinecke <hare@suse.de> | 2014-11-05 07:08:20 -0500 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2014-11-05 11:22:06 -0500 |
| commit | 1cbd772d9aaf6c697935cb855860b66cebacf950 (patch) | |
| tree | fe83656bbb9a39f4a8b85ebb6afce18b05492840 /include/scsi | |
| parent | 9a23c1d6f0f5dbac4c9b73fa6cea7c9ee3d29074 (diff) | |
libsas: use ata_dev_classify()
Use the ata device class from libata in libsas instead of checking
the supported command set and switch to using ata_dev_classify()
instead of our own method.
Cc: Tejun Heo <tj@kernel.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/scsi')
| -rw-r--r-- | include/scsi/libsas.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index ef7872c20da9..8528a09a00c4 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h | |||
| @@ -161,17 +161,12 @@ struct expander_device { | |||
| 161 | }; | 161 | }; |
| 162 | 162 | ||
| 163 | /* ---------- SATA device ---------- */ | 163 | /* ---------- SATA device ---------- */ |
| 164 | enum ata_command_set { | ||
| 165 | ATA_COMMAND_SET = 0, | ||
| 166 | ATAPI_COMMAND_SET = 1, | ||
| 167 | }; | ||
| 168 | |||
| 169 | #define ATA_RESP_FIS_SIZE 24 | 164 | #define ATA_RESP_FIS_SIZE 24 |
| 170 | 165 | ||
| 171 | struct sata_device { | 166 | struct sata_device { |
| 172 | enum ata_command_set command_set; | 167 | unsigned int class; |
| 173 | struct smp_resp rps_resp; /* report_phy_sata_resp */ | 168 | struct smp_resp rps_resp; /* report_phy_sata_resp */ |
| 174 | u8 port_no; /* port number, if this is a PM (Port) */ | 169 | u8 port_no; /* port number, if this is a PM (Port) */ |
| 175 | 170 | ||
| 176 | struct ata_port *ap; | 171 | struct ata_port *ap; |
| 177 | struct ata_host ata_host; | 172 | struct ata_host ata_host; |
