diff options
author | Maciej Patelczyk <maciej.patelczyk@intel.com> | 2011-04-28 18:06:26 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:00:38 -0400 |
commit | af23e85737253624cde84704008be40355ff6922 (patch) | |
tree | 98fe6c8aa6d86e08bb9799aef2dc97b78c2f5aee | |
parent | 5d937e966d383c4012c19b0e47dc196ba505eb19 (diff) |
isci: Removed sci_base_object from scic_sds_remote_node_context.
The 'struct sci_base_object' was removed from the struct
scic_sds_remote_node_context.
Signed-off-by: Maciej Patelczyk <maciej.patelczyk@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r-- | drivers/scsi/isci/remote_device.c | 2 | ||||
-rw-r--r-- | drivers/scsi/isci/remote_node_context.c | 33 | ||||
-rw-r--r-- | drivers/scsi/isci/remote_node_context.h | 5 |
3 files changed, 9 insertions, 31 deletions
diff --git a/drivers/scsi/isci/remote_device.c b/drivers/scsi/isci/remote_device.c index 3fc66b2a5992..2bbc7c20c400 100644 --- a/drivers/scsi/isci/remote_device.c +++ b/drivers/scsi/isci/remote_device.c | |||
@@ -1386,8 +1386,6 @@ static void scic_remote_device_construct(struct scic_sds_port *sci_port, | |||
1386 | 1386 | ||
1387 | scic_sds_remote_node_context_construct(&sci_dev->rnc, | 1387 | scic_sds_remote_node_context_construct(&sci_dev->rnc, |
1388 | SCIC_SDS_REMOTE_NODE_CONTEXT_INVALID_INDEX); | 1388 | SCIC_SDS_REMOTE_NODE_CONTEXT_INVALID_INDEX); |
1389 | |||
1390 | sci_object_set_association(&sci_dev->rnc, sci_dev); | ||
1391 | } | 1389 | } |
1392 | 1390 | ||
1393 | /** | 1391 | /** |
diff --git a/drivers/scsi/isci/remote_node_context.c b/drivers/scsi/isci/remote_node_context.c index bc51ecf76b14..49d2dc5374f4 100644 --- a/drivers/scsi/isci/remote_node_context.c +++ b/drivers/scsi/isci/remote_node_context.c | |||
@@ -972,9 +972,7 @@ static void scic_sds_remote_node_context_invalidate_context_buffer( | |||
972 | */ | 972 | */ |
973 | static void scic_sds_remote_node_context_initial_state_enter(void *object) | 973 | static void scic_sds_remote_node_context_initial_state_enter(void *object) |
974 | { | 974 | { |
975 | struct scic_sds_remote_node_context *rnc; | 975 | struct scic_sds_remote_node_context *rnc = object; |
976 | |||
977 | rnc = (struct scic_sds_remote_node_context *)object; | ||
978 | 976 | ||
979 | SET_STATE_HANDLER( | 977 | SET_STATE_HANDLER( |
980 | rnc, | 978 | rnc, |
@@ -1002,9 +1000,7 @@ static void scic_sds_remote_node_context_initial_state_enter(void *object) | |||
1002 | */ | 1000 | */ |
1003 | static void scic_sds_remote_node_context_posting_state_enter(void *object) | 1001 | static void scic_sds_remote_node_context_posting_state_enter(void *object) |
1004 | { | 1002 | { |
1005 | struct scic_sds_remote_node_context *sci_rnc; | 1003 | struct scic_sds_remote_node_context *sci_rnc = object; |
1006 | |||
1007 | sci_rnc = (struct scic_sds_remote_node_context *)object; | ||
1008 | 1004 | ||
1009 | SET_STATE_HANDLER( | 1005 | SET_STATE_HANDLER( |
1010 | sci_rnc, | 1006 | sci_rnc, |
@@ -1022,9 +1018,7 @@ static void scic_sds_remote_node_context_posting_state_enter(void *object) | |||
1022 | */ | 1018 | */ |
1023 | static void scic_sds_remote_node_context_invalidating_state_enter(void *object) | 1019 | static void scic_sds_remote_node_context_invalidating_state_enter(void *object) |
1024 | { | 1020 | { |
1025 | struct scic_sds_remote_node_context *rnc; | 1021 | struct scic_sds_remote_node_context *rnc = object; |
1026 | |||
1027 | rnc = (struct scic_sds_remote_node_context *)object; | ||
1028 | 1022 | ||
1029 | SET_STATE_HANDLER( | 1023 | SET_STATE_HANDLER( |
1030 | rnc, | 1024 | rnc, |
@@ -1042,11 +1036,10 @@ static void scic_sds_remote_node_context_invalidating_state_enter(void *object) | |||
1042 | */ | 1036 | */ |
1043 | static void scic_sds_remote_node_context_resuming_state_enter(void *object) | 1037 | static void scic_sds_remote_node_context_resuming_state_enter(void *object) |
1044 | { | 1038 | { |
1045 | struct scic_sds_remote_node_context *rnc; | 1039 | struct scic_sds_remote_node_context *rnc = object; |
1046 | struct scic_sds_remote_device *sci_dev; | 1040 | struct scic_sds_remote_device *sci_dev; |
1047 | struct domain_device *dev; | 1041 | struct domain_device *dev; |
1048 | 1042 | ||
1049 | rnc = (struct scic_sds_remote_node_context *)object; | ||
1050 | sci_dev = rnc_to_dev(rnc); | 1043 | sci_dev = rnc_to_dev(rnc); |
1051 | dev = sci_dev_to_domain(sci_dev); | 1044 | dev = sci_dev_to_domain(sci_dev); |
1052 | 1045 | ||
@@ -1077,9 +1070,7 @@ static void scic_sds_remote_node_context_resuming_state_enter(void *object) | |||
1077 | */ | 1070 | */ |
1078 | static void scic_sds_remote_node_context_ready_state_enter(void *object) | 1071 | static void scic_sds_remote_node_context_ready_state_enter(void *object) |
1079 | { | 1072 | { |
1080 | struct scic_sds_remote_node_context *rnc; | 1073 | struct scic_sds_remote_node_context *rnc = object; |
1081 | |||
1082 | rnc = (struct scic_sds_remote_node_context *)object; | ||
1083 | 1074 | ||
1084 | SET_STATE_HANDLER( | 1075 | SET_STATE_HANDLER( |
1085 | rnc, | 1076 | rnc, |
@@ -1101,9 +1092,7 @@ static void scic_sds_remote_node_context_ready_state_enter(void *object) | |||
1101 | */ | 1092 | */ |
1102 | static void scic_sds_remote_node_context_tx_suspended_state_enter(void *object) | 1093 | static void scic_sds_remote_node_context_tx_suspended_state_enter(void *object) |
1103 | { | 1094 | { |
1104 | struct scic_sds_remote_node_context *rnc; | 1095 | struct scic_sds_remote_node_context *rnc = object; |
1105 | |||
1106 | rnc = (struct scic_sds_remote_node_context *)object; | ||
1107 | 1096 | ||
1108 | SET_STATE_HANDLER( | 1097 | SET_STATE_HANDLER( |
1109 | rnc, | 1098 | rnc, |
@@ -1122,9 +1111,7 @@ static void scic_sds_remote_node_context_tx_suspended_state_enter(void *object) | |||
1122 | static void scic_sds_remote_node_context_tx_rx_suspended_state_enter( | 1111 | static void scic_sds_remote_node_context_tx_rx_suspended_state_enter( |
1123 | void *object) | 1112 | void *object) |
1124 | { | 1113 | { |
1125 | struct scic_sds_remote_node_context *rnc; | 1114 | struct scic_sds_remote_node_context *rnc = object; |
1126 | |||
1127 | rnc = (struct scic_sds_remote_node_context *)object; | ||
1128 | 1115 | ||
1129 | SET_STATE_HANDLER( | 1116 | SET_STATE_HANDLER( |
1130 | rnc, | 1117 | rnc, |
@@ -1143,9 +1130,7 @@ static void scic_sds_remote_node_context_tx_rx_suspended_state_enter( | |||
1143 | static void scic_sds_remote_node_context_await_suspension_state_enter( | 1130 | static void scic_sds_remote_node_context_await_suspension_state_enter( |
1144 | void *object) | 1131 | void *object) |
1145 | { | 1132 | { |
1146 | struct scic_sds_remote_node_context *rnc; | 1133 | struct scic_sds_remote_node_context *rnc = object; |
1147 | |||
1148 | rnc = (struct scic_sds_remote_node_context *)object; | ||
1149 | 1134 | ||
1150 | SET_STATE_HANDLER( | 1135 | SET_STATE_HANDLER( |
1151 | rnc, | 1136 | rnc, |
@@ -1193,7 +1178,7 @@ void scic_sds_remote_node_context_construct(struct scic_sds_remote_node_context | |||
1193 | 1178 | ||
1194 | sci_base_state_machine_construct( | 1179 | sci_base_state_machine_construct( |
1195 | &rnc->state_machine, | 1180 | &rnc->state_machine, |
1196 | &rnc->parent, | 1181 | rnc, |
1197 | scic_sds_remote_node_context_state_table, | 1182 | scic_sds_remote_node_context_state_table, |
1198 | SCIC_SDS_REMOTE_NODE_CONTEXT_INITIAL_STATE | 1183 | SCIC_SDS_REMOTE_NODE_CONTEXT_INITIAL_STATE |
1199 | ); | 1184 | ); |
diff --git a/drivers/scsi/isci/remote_node_context.h b/drivers/scsi/isci/remote_node_context.h index b3f2546090dd..bc7914beb0c5 100644 --- a/drivers/scsi/isci/remote_node_context.h +++ b/drivers/scsi/isci/remote_node_context.h | |||
@@ -226,11 +226,6 @@ enum scic_sds_remote_node_context_destination_state { | |||
226 | * the silicon RNC. | 226 | * the silicon RNC. |
227 | */ | 227 | */ |
228 | struct scic_sds_remote_node_context { | 228 | struct scic_sds_remote_node_context { |
229 | /* | ||
230 | * parent object | ||
231 | */ | ||
232 | struct sci_base_object parent; | ||
233 | |||
234 | /** | 229 | /** |
235 | * This field indicates the remote node index (RNI) associated with | 230 | * This field indicates the remote node index (RNI) associated with |
236 | * this RNC. | 231 | * this RNC. |