diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-06-30 22:14:33 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:04:52 -0400 |
commit | 89a7301f21fb00e753089671eb9e4132aab8ea08 (patch) | |
tree | afa8bac0a36d0d5626997d8995f6c9194aef3a0f /drivers/scsi/isci/probe_roms.c | |
parent | d9dcb4ba791de2a06b19ac47cd61601cf3d4e208 (diff) |
isci: retire scic_sds_ and scic_ prefixes
The distinction between scic_sds_ scic_ and sci_ are no longer relevant
so just unify the prefixes on sci_. The distinction between isci_ and
sci_ is historically significant, and useful for comparing the old
'core' to the current Linux driver. 'sci_' represents the former core as
well as the routines that are closer to the hardware and protocol than
their 'isci_' brethren. sci == sas controller interface.
Also unwind the 'sds1' out of the parameter structs.
Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/probe_roms.c')
-rw-r--r-- | drivers/scsi/isci/probe_roms.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/scsi/isci/probe_roms.c b/drivers/scsi/isci/probe_roms.c index 99b13c19187..c7732fb2888 100644 --- a/drivers/scsi/isci/probe_roms.c +++ b/drivers/scsi/isci/probe_roms.c | |||
@@ -111,25 +111,15 @@ struct isci_orom *isci_request_oprom(struct pci_dev *pdev) | |||
111 | return rom; | 111 | return rom; |
112 | } | 112 | } |
113 | 113 | ||
114 | /** | 114 | enum sci_status isci_parse_oem_parameters(struct sci_oem_params *oem, |
115 | * isci_parse_oem_parameters() - This method will take OEM parameters | ||
116 | * from the module init parameters and copy them to oem_params. This will | ||
117 | * only copy values that are not set to the module parameter default values | ||
118 | * @oem_parameters: This parameter specifies the controller default OEM | ||
119 | * parameters. It is expected that this has been initialized to the default | ||
120 | * parameters for the controller | ||
121 | * | ||
122 | * | ||
123 | */ | ||
124 | enum sci_status isci_parse_oem_parameters(union scic_oem_parameters *oem_params, | ||
125 | struct isci_orom *orom, int scu_index) | 115 | struct isci_orom *orom, int scu_index) |
126 | { | 116 | { |
127 | /* check for valid inputs */ | 117 | /* check for valid inputs */ |
128 | if (scu_index < 0 || scu_index >= SCI_MAX_CONTROLLERS || | 118 | if (scu_index < 0 || scu_index >= SCI_MAX_CONTROLLERS || |
129 | scu_index > orom->hdr.num_elements || !oem_params) | 119 | scu_index > orom->hdr.num_elements || !oem) |
130 | return -EINVAL; | 120 | return -EINVAL; |
131 | 121 | ||
132 | oem_params->sds1 = orom->ctrl[scu_index]; | 122 | *oem = orom->ctrl[scu_index]; |
133 | return 0; | 123 | return 0; |
134 | } | 124 | } |
135 | 125 | ||