diff options
Diffstat (limited to 'include/scsi/scsi_transport_fc.h')
-rw-r--r-- | include/scsi/scsi_transport_fc.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/scsi/scsi_transport_fc.h b/include/scsi/scsi_transport_fc.h index 4769efd4db24..06f72bab9df0 100644 --- a/include/scsi/scsi_transport_fc.h +++ b/include/scsi/scsi_transport_fc.h | |||
@@ -163,8 +163,8 @@ enum fc_tgtid_binding_type { | |||
163 | 163 | ||
164 | 164 | ||
165 | /* Macro for use in defining Virtual Port attributes */ | 165 | /* Macro for use in defining Virtual Port attributes */ |
166 | #define FC_VPORT_ATTR(_name,_mode,_show,_store) \ | 166 | #define FC_VPORT_ATTR(_name,_mode,_show,_store) \ |
167 | struct class_device_attribute class_device_attr_vport_##_name = \ | 167 | struct device_attribute dev_attr_vport_##_name = \ |
168 | __ATTR(_name,_mode,_show,_store) | 168 | __ATTR(_name,_mode,_show,_store) |
169 | 169 | ||
170 | 170 | ||
@@ -234,8 +234,8 @@ struct fc_vport { | |||
234 | 234 | ||
235 | #define dev_to_vport(d) \ | 235 | #define dev_to_vport(d) \ |
236 | container_of(d, struct fc_vport, dev) | 236 | container_of(d, struct fc_vport, dev) |
237 | #define transport_class_to_vport(classdev) \ | 237 | #define transport_class_to_vport(dev) \ |
238 | dev_to_vport(classdev->dev) | 238 | dev_to_vport(dev->parent) |
239 | #define vport_to_shost(v) \ | 239 | #define vport_to_shost(v) \ |
240 | (v->shost) | 240 | (v->shost) |
241 | #define vport_to_shost_channel(v) \ | 241 | #define vport_to_shost_channel(v) \ |
@@ -271,7 +271,7 @@ struct fc_rport_identifiers { | |||
271 | 271 | ||
272 | /* Macro for use in defining Remote Port attributes */ | 272 | /* Macro for use in defining Remote Port attributes */ |
273 | #define FC_RPORT_ATTR(_name,_mode,_show,_store) \ | 273 | #define FC_RPORT_ATTR(_name,_mode,_show,_store) \ |
274 | struct class_device_attribute class_device_attr_rport_##_name = \ | 274 | struct device_attribute dev_attr_rport_##_name = \ |
275 | __ATTR(_name,_mode,_show,_store) | 275 | __ATTR(_name,_mode,_show,_store) |
276 | 276 | ||
277 | 277 | ||
@@ -341,8 +341,8 @@ struct fc_rport { /* aka fc_starget_attrs */ | |||
341 | 341 | ||
342 | #define dev_to_rport(d) \ | 342 | #define dev_to_rport(d) \ |
343 | container_of(d, struct fc_rport, dev) | 343 | container_of(d, struct fc_rport, dev) |
344 | #define transport_class_to_rport(classdev) \ | 344 | #define transport_class_to_rport(dev) \ |
345 | dev_to_rport(classdev->dev) | 345 | dev_to_rport(dev->parent) |
346 | #define rport_to_shost(r) \ | 346 | #define rport_to_shost(r) \ |
347 | dev_to_shost(r->dev.parent) | 347 | dev_to_shost(r->dev.parent) |
348 | 348 | ||