aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/host.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/isci/host.h')
-rw-r--r--drivers/scsi/isci/host.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/scsi/isci/host.h b/drivers/scsi/isci/host.h
index 6e660744d8d4..21bd7d88e5d8 100644
--- a/drivers/scsi/isci/host.h
+++ b/drivers/scsi/isci/host.h
@@ -110,18 +110,9 @@ struct isci_host {
110 struct list_head requests_to_errorback; 110 struct list_head requests_to_errorback;
111 spinlock_t scic_lock; 111 spinlock_t scic_lock;
112 112
113 /* careful only access this via idev_by_id */ 113 struct isci_remote_device devices[SCI_MAX_REMOTE_DEVICES];
114 struct isci_remote_device devices[0];
115}; 114};
116 115
117static inline struct isci_remote_device *idev_by_id(struct isci_host *ihost, int i)
118{
119 void *p = ihost->devices;
120
121 return p + i * (sizeof(struct isci_remote_device) +
122 scic_remote_device_get_object_size());
123}
124
125/** 116/**
126 * struct isci_pci_info - This class represents the pci function containing the 117 * struct isci_pci_info - This class represents the pci function containing the
127 * controllers. Depending on PCI SKU, there could be up to 2 controllers in 118 * controllers. Depending on PCI SKU, there could be up to 2 controllers in