summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/remote_node_context.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-05-12 07:46:59 -0700
committerDan Williams <dan.j.williams@intel.com>2011-07-03 04:04:49 -0700
commit338e386d12c2440e39c987d35fda403d319a79a0 (patch)
tree912dec715b326319ed2631aa7dacad4e05d4a641 /drivers/scsi/isci/remote_node_context.h
parent6813820c7b892e1a5c2306808a5ccc8a27b7946d (diff)
downloadblackbird-op-linux-338e386d12c2440e39c987d35fda403d319a79a0.tar.gz
blackbird-op-linux-338e386d12c2440e39c987d35fda403d319a79a0.zip
isci: unify rnc event handlers
Unify rnc event handlers and delete the state handler. Reported-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/remote_node_context.h')
-rw-r--r--drivers/scsi/isci/remote_node_context.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/scsi/isci/remote_node_context.h b/drivers/scsi/isci/remote_node_context.h
index a763468fa74f..fb93f09d4df6 100644
--- a/drivers/scsi/isci/remote_node_context.h
+++ b/drivers/scsi/isci/remote_node_context.h
@@ -102,11 +102,6 @@ typedef enum sci_status (*scic_sds_remote_node_context_io_request)(
struct scic_sds_request *sci_req
);
-typedef enum sci_status (*scic_sds_remote_node_context_event_handler)(
- struct scic_sds_remote_node_context *sci_rnc,
- u32 event_code
- );
-
struct scic_sds_remote_node_context_handlers {
/**
* This handle is invoked to stop the RNC. The callback is invoked when after
@@ -138,12 +133,6 @@ struct scic_sds_remote_node_context_handlers {
* operation.
*/
scic_sds_remote_node_context_io_request start_task_handler;
-
- /**
- * This handler is invoked where there is an RNC event that must be processed.
- */
- scic_sds_remote_node_context_event_handler event_handler;
-
};
/**
@@ -271,8 +260,9 @@ bool scic_sds_remote_node_context_is_ready(
#define scic_sds_remote_node_context_get_remote_node_index(rcn) \
((rnc)->remote_node_index)
-#define scic_sds_remote_node_context_event_handler(rnc, event_code) \
- ((rnc)->state_handlers->event_handler(rnc, event_code))
+
+enum sci_status scic_sds_remote_node_context_event_handler(struct scic_sds_remote_node_context *sci_rnc,
+ u32 event_code);
#define scic_sds_remote_node_context_resume(rnc, callback, parameter) \
((rnc)->state_handlers->resume_handler(rnc, callback, parameter))
OpenPOWER on IntegriCloud