summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/remote_device.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-04-21 18:14:45 -0700
committerDan Williams <dan.j.williams@intel.com>2011-07-03 04:00:38 -0700
commit57f20f4ed6fb702339be2ef4dea9d15e6a7d0d07 (patch)
treed31db747f233d5ea790e82b64e233ee762cf2cdf /drivers/scsi/isci/remote_device.h
parent9614395ea2eed076fa8341df422582b0017d330c (diff)
isci: unify remote_device data structures
Make it explicit that isci_remote_device and scic_sds_remote_device are one in the same object. 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.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/scsi/isci/remote_device.h b/drivers/scsi/isci/remote_device.h
index 9925316ac55..aeda39568a1 100644
--- a/drivers/scsi/isci/remote_device.h
+++ b/drivers/scsi/isci/remote_device.h
@@ -55,9 +55,9 @@
#if !defined(_ISCI_REMOTE_DEVICE_H_)
#define _ISCI_REMOTE_DEVICE_H_
+#include "scic_sds_remote_device.h"
struct isci_host;
-struct scic_sds_remote_device;
struct isci_remote_device {
enum isci_status status;
@@ -70,14 +70,9 @@ struct isci_remote_device {
struct list_head node;
struct list_head reqs_in_process;
spinlock_t state_lock;
+ struct scic_sds_remote_device sci;
};
-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 ISCI_REMOTE_DEVICE_START_TIMEOUT 5000
void isci_remote_device_start_complete(struct isci_host *ihost,