]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/scsi/isci/remote_device.h
isci: unify remote_device data structures
[karo-tx-linux.git] / drivers / scsi / isci / remote_device.h
index 9925316ac55a57e33a2c74b59222841823dab29b..aeda39568a1c99b82568430c5493c4a2a733c7ee 100644 (file)
@@ -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,