isci: additional state machine cleanup

Additional state machine cleanups:

 o Remove static functions sci_state_machine_exit_state() and
   sci_state_machine_enter_state()
 o Combines sci_base_state_machine_construct() and
   sci_base_state_machine_start() into a single function,
   sci_init_sm()
 o Remove sci_base_state_machine_stop() which is unused.
 o Kill state_machine.[ch]

Signed-off-by: Edmund Nadolski <edmund.nadolski@intel.com>
[fixed too large to inline functions]
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
此提交包含在:
Edmund Nadolski
2011-06-02 00:10:50 +00:00
提交者 Dan Williams
父節點 e301370ac5
當前提交 12ef65444d
共有 13 個檔案被更改,包括 62 行新增294 行删除

查看文件

@@ -1807,11 +1807,7 @@ static const struct sci_base_state scic_sds_port_state_table[] = {
void scic_sds_port_construct(struct scic_sds_port *sci_port, u8 index,
struct scic_sds_controller *scic)
{
sci_base_state_machine_construct(&sci_port->sm,
scic_sds_port_state_table,
SCI_PORT_STOPPED);
sci_base_state_machine_start(&sci_port->sm);
sci_init_sm(&sci_port->sm, scic_sds_port_state_table, SCI_PORT_STOPPED);
sci_port->logical_port_index = SCIC_SDS_DUMMY_PORT;
sci_port->physical_port_index = index;