aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/state_machine.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/isci/state_machine.c')
-rw-r--r--drivers/scsi/isci/state_machine.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/drivers/scsi/isci/state_machine.c b/drivers/scsi/isci/state_machine.c
index 1bcd925e502f..8cfefb959f22 100644
--- a/drivers/scsi/isci/state_machine.c
+++ b/drivers/scsi/isci/state_machine.c
@@ -127,16 +127,7 @@ void sci_base_state_machine_stop(
127 sci_state_machine_exit_state(sm); 127 sci_state_machine_exit_state(sm);
128} 128}
129 129
130/** 130void sci_change_state(struct sci_base_state_machine *sm, u32 next_state)
131 * This method performs an update to the current state of the state machine.
132 * @sm: This parameter specifies the state machine for which
133 * the caller wishes to perform a state change.
134 * @next_state: This parameter specifies the new state for the state machine.
135 *
136 */
137void sci_base_state_machine_change_state(
138 struct sci_base_state_machine *sm,
139 u32 next_state)
140{ 131{
141 sci_state_machine_exit_state(sm); 132 sci_state_machine_exit_state(sm);
142 133
@@ -145,18 +136,3 @@ void sci_base_state_machine_change_state(
145 136
146 sci_state_machine_enter_state(sm); 137 sci_state_machine_enter_state(sm);
147} 138}
148
149/**
150 * This method simply returns the current state of the state machine to the
151 * caller.
152 * @sm: This parameter specifies the state machine for which to
153 * retrieve the current state.
154 *
155 * This method returns a u32 value indicating the current state for the
156 * supplied state machine.
157 */
158u32 sci_base_state_machine_get_state(struct sci_base_state_machine *sm)
159{
160 return sm->current_state_id;
161}
162