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>
This commit is contained in:
committed by
Tejun Heo
parent
9a23c1d6f0
commit
1cbd772d9a
@@ -161,17 +161,12 @@ struct expander_device {
|
||||
};
|
||||
|
||||
/* ---------- SATA device ---------- */
|
||||
enum ata_command_set {
|
||||
ATA_COMMAND_SET = 0,
|
||||
ATAPI_COMMAND_SET = 1,
|
||||
};
|
||||
|
||||
#define ATA_RESP_FIS_SIZE 24
|
||||
|
||||
struct sata_device {
|
||||
enum ata_command_set command_set;
|
||||
struct smp_resp rps_resp; /* report_phy_sata_resp */
|
||||
u8 port_no; /* port number, if this is a PM (Port) */
|
||||
unsigned int class;
|
||||
struct smp_resp rps_resp; /* report_phy_sata_resp */
|
||||
u8 port_no; /* port number, if this is a PM (Port) */
|
||||
|
||||
struct ata_port *ap;
|
||||
struct ata_host ata_host;
|
||||
|
||||
Reference in New Issue
Block a user