diff options
Diffstat (limited to 'include/scsi/scsi_transport_sas.h')
-rw-r--r-- | include/scsi/scsi_transport_sas.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/scsi/scsi_transport_sas.h b/include/scsi/scsi_transport_sas.h index 09125fa95b93..61ad3594aad6 100644 --- a/include/scsi/scsi_transport_sas.h +++ b/include/scsi/scsi_transport_sas.h | |||
@@ -80,8 +80,8 @@ struct sas_phy { | |||
80 | 80 | ||
81 | #define dev_to_phy(d) \ | 81 | #define dev_to_phy(d) \ |
82 | container_of((d), struct sas_phy, dev) | 82 | container_of((d), struct sas_phy, dev) |
83 | #define transport_class_to_phy(cdev) \ | 83 | #define transport_class_to_phy(dev) \ |
84 | dev_to_phy((cdev)->dev) | 84 | dev_to_phy((dev)->parent) |
85 | #define phy_to_shost(phy) \ | 85 | #define phy_to_shost(phy) \ |
86 | dev_to_shost((phy)->dev.parent) | 86 | dev_to_shost((phy)->dev.parent) |
87 | 87 | ||
@@ -96,8 +96,8 @@ struct sas_rphy { | |||
96 | 96 | ||
97 | #define dev_to_rphy(d) \ | 97 | #define dev_to_rphy(d) \ |
98 | container_of((d), struct sas_rphy, dev) | 98 | container_of((d), struct sas_rphy, dev) |
99 | #define transport_class_to_rphy(cdev) \ | 99 | #define transport_class_to_rphy(dev) \ |
100 | dev_to_rphy((cdev)->dev) | 100 | dev_to_rphy((dev)->parent) |
101 | #define rphy_to_shost(rphy) \ | 101 | #define rphy_to_shost(rphy) \ |
102 | dev_to_shost((rphy)->dev.parent) | 102 | dev_to_shost((rphy)->dev.parent) |
103 | #define target_to_rphy(targ) \ | 103 | #define target_to_rphy(targ) \ |
@@ -152,8 +152,8 @@ struct sas_port { | |||
152 | 152 | ||
153 | #define dev_to_sas_port(d) \ | 153 | #define dev_to_sas_port(d) \ |
154 | container_of((d), struct sas_port, dev) | 154 | container_of((d), struct sas_port, dev) |
155 | #define transport_class_to_sas_port(cdev) \ | 155 | #define transport_class_to_sas_port(dev) \ |
156 | dev_to_sas_port((cdev)->dev) | 156 | dev_to_sas_port((dev)->parent) |
157 | 157 | ||
158 | struct sas_phy_linkrates { | 158 | struct sas_phy_linkrates { |
159 | enum sas_linkrate maximum_linkrate; | 159 | enum sas_linkrate maximum_linkrate; |