summaryrefslogtreecommitdiff
path: root/drivers/scsi/isci/deprecated.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-02-09 04:53:10 +0300
committerDan Williams <dan.j.williams@intel.com>2011-07-03 11:36:31 +0400
commit82d29928c1c1c6a6605895f8240a9943394244d7 (patch)
tree7f5726aba78d9f4894125423024c9b8922f61cfd /drivers/scsi/isci/deprecated.c
parenta7e536c7d6f1796e8727f5c90d33765ae7cfd8d8 (diff)
downloadlinux-82d29928c1c1c6a6605895f8240a9943394244d7.tar.xz
isci: kill SCI_IO_REQUEST_DATA_DIRECTION
It's an unnecessary typedef that mirrors the kernel's enum dma_data_direction. Also cleanup some long variable names along the way. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/deprecated.c')
-rw-r--r--drivers/scsi/isci/deprecated.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/scsi/isci/deprecated.c b/drivers/scsi/isci/deprecated.c
index 847e6874e1a8..0ee6679b8107 100644
--- a/drivers/scsi/isci/deprecated.c
+++ b/drivers/scsi/isci/deprecated.c
@@ -139,16 +139,10 @@ u32 scic_cb_io_request_get_transfer_length(
* @scic_user_io_request: This parameter points to the user's IO request
* object. It is a cookie that allows the user to provide the necessary
* information for this callback.
- *
- * This method returns the value of SCI_IO_REQUEST_DATA_OUT or
- * SCI_IO_REQUEST_DATA_IN, or SCI_IO_REQUEST_NO_DATA.
*/
-SCI_IO_REQUEST_DATA_DIRECTION scic_cb_io_request_get_data_direction(
- void *scic_user_io_request)
+enum dma_data_direction scic_cb_io_request_get_data_direction(void *req)
{
- return isci_request_io_request_get_data_direction(
- scic_user_io_request
- );
+ return isci_request_io_request_get_data_direction(req);
}