diff options
author | Piotr Sawicki <piotr.sawicki@intel.com> | 2011-05-12 15:10:14 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:04:49 -0400 |
commit | 051266caaeb15719553c5316e3d43b533d3cd5a0 (patch) | |
tree | c3db604dbdf2da01ed27d80921cd302b364fcb3e /drivers/scsi/isci/port.h | |
parent | 13721e186fd31cd8475e635a89383853871fdbf1 (diff) |
isci: unify port link_up and link_down handlers
Unify the handlers and kill the state handler implementations.
Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Piotr Sawicki <piotr.sawicki@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/port.h')
-rw-r--r-- | drivers/scsi/isci/port.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/scsi/isci/port.h b/drivers/scsi/isci/port.h index 20f99263fa0a..bbce0ec583a9 100644 --- a/drivers/scsi/isci/port.h +++ b/drivers/scsi/isci/port.h | |||
@@ -312,9 +312,6 @@ typedef enum sci_status (*scic_sds_port_io_request_handler_t)(struct scic_sds_po | |||
312 | struct scic_sds_request *); | 312 | struct scic_sds_request *); |
313 | 313 | ||
314 | struct scic_sds_port_state_handler { | 314 | struct scic_sds_port_state_handler { |
315 | scic_sds_port_link_handler_t link_up_handler; | ||
316 | scic_sds_port_link_handler_t link_down_handler; | ||
317 | |||
318 | scic_sds_port_io_request_handler_t start_io_handler; | 315 | scic_sds_port_io_request_handler_t start_io_handler; |
319 | scic_sds_port_io_request_handler_t complete_io_handler; | 316 | scic_sds_port_io_request_handler_t complete_io_handler; |
320 | }; | 317 | }; |
@@ -402,13 +399,10 @@ bool scic_sds_port_link_detected( | |||
402 | struct scic_sds_port *sci_port, | 399 | struct scic_sds_port *sci_port, |
403 | struct scic_sds_phy *sci_phy); | 400 | struct scic_sds_phy *sci_phy); |
404 | 401 | ||
405 | void scic_sds_port_link_up( | 402 | enum sci_status scic_sds_port_link_up(struct scic_sds_port *sci_port, |
406 | struct scic_sds_port *sci_port, | 403 | struct scic_sds_phy *sci_phy); |
407 | struct scic_sds_phy *sci_phy); | 404 | enum sci_status scic_sds_port_link_down(struct scic_sds_port *sci_port, |
408 | 405 | struct scic_sds_phy *sci_phy); | |
409 | void scic_sds_port_link_down( | ||
410 | struct scic_sds_port *sci_port, | ||
411 | struct scic_sds_phy *sci_phy); | ||
412 | 406 | ||
413 | enum sci_status scic_sds_port_start_io( | 407 | enum sci_status scic_sds_port_start_io( |
414 | struct scic_sds_port *sci_port, | 408 | struct scic_sds_port *sci_port, |