diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-03-04 11:51:43 -0800 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 03:55:29 -0700 |
commit | 3a97eec6d7876c541950e23811efd40e0bcd04a0 (patch) | |
tree | 543e52abd6d41df724374fbdd6fe852ac611ca50 /drivers/scsi/isci/remote_device.h | |
parent | b329aff107543c3c4db26c1572405034c3baf906 (diff) | |
download | blackbird-op-linux-3a97eec6d7876c541950e23811efd40e0bcd04a0.tar.gz blackbird-op-linux-3a97eec6d7876c541950e23811efd40e0bcd04a0.zip |
isci: remove sci_device_handle
It belies the fact that isci_remote_device and scic_sds_remote_device
are one in same object with the same lifetime rules.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/remote_device.h')
-rw-r--r-- | drivers/scsi/isci/remote_device.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/scsi/isci/remote_device.h b/drivers/scsi/isci/remote_device.h index 48e37cfef6fb..cd43c15f009d 100644 --- a/drivers/scsi/isci/remote_device.h +++ b/drivers/scsi/isci/remote_device.h @@ -60,7 +60,6 @@ struct isci_host; struct scic_sds_remote_device; struct isci_remote_device { - struct scic_sds_remote_device *sci_device_handle; enum isci_status status; struct isci_port *isci_port; struct domain_device *domain_dev; @@ -73,6 +72,12 @@ struct isci_remote_device { bool host_quiesce; }; +static inline struct scic_sds_remote_device *to_sci_dev(struct isci_remote_device *idev) +{ + /* core data is an opaque buffer at the end of the idev */ + return (struct scic_sds_remote_device *) &idev[1]; +} + #define to_isci_remote_device(p) \ container_of(p, struct isci_remote_device, sci_remote_device); |