summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDolev Raviv <draviv@codeaurora.org>2013-10-17 10:50:06 +0300
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 10:55:49 -0700
commit1458023d1efceae3cf0741fde415476f8b705b4e (patch)
treea17459f1e98f856da2ca1ef5f8792850cf8e70e5
parenta4d13e95d6a4843efed1b716609af9ee9f2cc8aa (diff)
scsi: ufs: fix spelling in variable
A variable named ioct_data should have named ioctl_data. This change is important for synchronizing the original change with mailing list version. Change-Id: I224989d3caf2ee0faad6b99cd6774983438c5464 Signed-off-by: Dolev Raviv <draviv@codeaurora.org> [subhashj@codeaurora.org: resolved trivial merge conflicts] Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
-rw-r--r--drivers/scsi/ufs/ufshcd.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 2e52d2a39d68..73d8d5b43a63 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -4480,7 +4480,7 @@ static void ufshcd_async_scan(void *data, async_cookie_t cookie)
*/
static int ufshcd_query_ioctl(struct ufs_hba *hba, u8 lun, void __user *buffer)
{
- struct ufs_ioctl_query_data *ioct_data;
+ struct ufs_ioctl_query_data *ioctl_data;
int err = 0;
int length = 0;
void *data_ptr;
@@ -4489,8 +4489,8 @@ static int ufshcd_query_ioctl(struct ufs_hba *hba, u8 lun, void __user *buffer)
u8 index;
u8 *desc = NULL;
- ioct_data = kmalloc(sizeof(struct ufs_ioctl_query_data), GFP_KERNEL);
- if (!ioct_data) {
+ ioctl_data = kmalloc(sizeof(struct ufs_ioctl_query_data), GFP_KERNEL);
+ if (!ioctl_data) {
dev_err(hba->dev, "%s: Failed allocating %zu bytes\n", __func__,
sizeof(struct ufs_ioctl_query_data));
err = -ENOMEM;
@@ -4498,7 +4498,7 @@ static int ufshcd_query_ioctl(struct ufs_hba *hba, u8 lun, void __user *buffer)
}
/* extract params from user buffer */
- err = copy_from_user(ioct_data, buffer,
+ err = copy_from_user(ioctl_data, buffer,
sizeof(struct ufs_ioctl_query_data));
if (err) {
dev_err(hba->dev,
@@ -4508,9 +4508,9 @@ static int ufshcd_query_ioctl(struct ufs_hba *hba, u8 lun, void __user *buffer)
}
/* verify legal parameters & send query */
- switch (ioct_data->opcode) {
+ switch (ioctl_data->opcode) {
case UPIU_QUERY_OPCODE_READ_DESC:
- switch (ioct_data->idn) {
+ switch (ioctl_data->idn) {
case QUERY_DESC_IDN_DEVICE:
case QUERY_DESC_IDN_CONFIGURAION:
case QUERY_DESC_IDN_INTERCONNECT:
@@ -4532,7 +4532,7 @@ static int ufshcd_query_ioctl(struct ufs_hba *hba, u8 lun, void __user *buffer)
goto out_einval;
}
length = min_t(int, QUERY_DESC_MAX_SIZE,
- ioct_data->buf_size);
+ ioctl_data->buf_size);
desc = kmalloc(length, GFP_KERNEL);
if (!desc) {
dev_err(hba->dev, "%s: Failed allocating %d bytes\n",
@@ -4540,11 +4540,11 @@ static int ufshcd_query_ioctl(struct ufs_hba *hba, u8 lun, void __user *buffer)
err = -ENOMEM;
goto out_release_mem;
}
- err = ufshcd_query_descriptor(hba, ioct_data->opcode,
- ioct_data->idn, index, 0, desc, &length);
+ err = ufshcd_query_descriptor(hba, ioctl_data->opcode,
+ ioctl_data->idn, index, 0, desc, &length);
break;
case UPIU_QUERY_OPCODE_READ_ATTR:
- switch (ioct_data->idn) {
+ switch (ioctl_data->idn) {
case QUERY_ATTR_IDN_BOOT_LU_EN:
case QUERY_ATTR_IDN_POWER_MODE:
case QUERY_ATTR_IDN_ACTIVE_ICC_LVL:
@@ -4568,11 +4568,11 @@ static int ufshcd_query_ioctl(struct ufs_hba *hba, u8 lun, void __user *buffer)
default:
goto out_einval;
}
- err = ufshcd_query_attr(hba, ioct_data->opcode, ioct_data->idn,
+ err = ufshcd_query_attr(hba, ioctl_data->opcode, ioctl_data->idn,
index, 0, &att);
break;
case UPIU_QUERY_OPCODE_READ_FLAG:
- switch (ioct_data->idn) {
+ switch (ioctl_data->idn) {
case QUERY_FLAG_IDN_FDEVICEINIT:
case QUERY_FLAG_IDN_PERMANENT_WPE:
case QUERY_FLAG_IDN_PWR_ON_WPE:
@@ -4584,7 +4584,7 @@ static int ufshcd_query_ioctl(struct ufs_hba *hba, u8 lun, void __user *buffer)
default:
goto out_einval;
}
- err = ufshcd_query_flag(hba, ioct_data->opcode, ioct_data->idn,
+ err = ufshcd_query_flag(hba, ioctl_data->opcode, ioctl_data->idn,
&flag);
break;
default:
@@ -4593,27 +4593,27 @@ static int ufshcd_query_ioctl(struct ufs_hba *hba, u8 lun, void __user *buffer)
if (err) {
dev_err(hba->dev, "%s: Query for idn %d failed\n", __func__,
- ioct_data->idn);
+ ioctl_data->idn);
goto out_release_mem;
}
/*
* copy response data
* As we might end up reading less data then what is specified in
- * "ioct_data->buf_size". So we are updating "ioct_data->
+ * "ioctl_data->buf_size". So we are updating "ioctl_data->
* buf_size" to what exactly we have read.
*/
- switch (ioct_data->opcode) {
+ switch (ioctl_data->opcode) {
case UPIU_QUERY_OPCODE_READ_DESC:
- ioct_data->buf_size = min_t(int, ioct_data->buf_size, length);
+ ioctl_data->buf_size = min_t(int, ioctl_data->buf_size, length);
data_ptr = desc;
break;
case UPIU_QUERY_OPCODE_READ_ATTR:
- ioct_data->buf_size = sizeof(u32);
+ ioctl_data->buf_size = sizeof(u32);
data_ptr = &att;
break;
case UPIU_QUERY_OPCODE_READ_FLAG:
- ioct_data->buf_size = 1;
+ ioctl_data->buf_size = 1;
data_ptr = &flag;
break;
default:
@@ -4621,13 +4621,13 @@ static int ufshcd_query_ioctl(struct ufs_hba *hba, u8 lun, void __user *buffer)
}
/* copy to user */
- err = copy_to_user(buffer, ioct_data,
+ err = copy_to_user(buffer, ioctl_data,
sizeof(struct ufs_ioctl_query_data));
if (err)
dev_err(hba->dev, "%s: Failed copying back to user.\n",
__func__);
err = copy_to_user(buffer + sizeof(struct ufs_ioctl_query_data),
- data_ptr, ioct_data->buf_size);
+ data_ptr, ioctl_data->buf_size);
if (err)
dev_err(hba->dev, "%s: err %d copying back to user.\n",
__func__, err);
@@ -4636,10 +4636,10 @@ static int ufshcd_query_ioctl(struct ufs_hba *hba, u8 lun, void __user *buffer)
out_einval:
dev_err(hba->dev,
"%s: illegal ufs query ioctl data, opcode 0x%x, idn 0x%x\n",
- __func__, ioct_data->opcode, (unsigned int)ioct_data->idn);
+ __func__, ioctl_data->opcode, (unsigned int)ioctl_data->idn);
err = -EINVAL;
out_release_mem:
- kfree(ioct_data);
+ kfree(ioctl_data);
kfree(desc);
out:
return err;