[PATCH 13/19] staging: exfat: Rename variable 'Name' to 'name'

From: Pragat Pandya
Date: Wed Jan 29 2020 - 12:00:06 EST


Fix checkpatch warning: Avoid CamelCase.
Change all occurrences of identifier "Name" to "name"

Signed-off-by: Pragat Pandya <pragat.pandya@xxxxxxxxx>
---
drivers/staging/exfat/exfat.h | 2 +-
drivers/staging/exfat/exfat_super.c | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h
index 2242cf1fdb4a..e74e4d5fecd4 100644
--- a/drivers/staging/exfat/exfat.h
+++ b/drivers/staging/exfat/exfat.h
@@ -270,7 +270,7 @@ struct file_id_t {
};

struct dir_entry_t {
- char Name[MAX_NAME_LENGTH * MAX_CHARSET_SIZE];
+ char name[MAX_NAME_LENGTH * MAX_CHARSET_SIZE];

/* used only for FAT12/16/32, not used for exFAT */
char ShortName[DOS_NAME_LENGTH + 2];
diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index 4b8ffb8ab557..8e9684808cba 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -1465,7 +1465,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info)
memset((char *)&info->AccessTimestamp, 0,
sizeof(struct date_time_t));
strcpy(info->ShortName, ".");
- strcpy(info->Name, ".");
+ strcpy(info->name, ".");

dir.dir = p_fs->root_dir;
dir.flags = 0x01;
@@ -1530,7 +1530,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info)
*/
p_fs->fs_func->get_uni_name_from_ext_entry(sb, &fid->dir, fid->entry,
uni_name.name);
- nls_uniname_to_cstring(sb, info->Name, &uni_name);
+ nls_uniname_to_cstring(sb, info->name, &uni_name);

info->NumSubdirs = 2;

@@ -1948,7 +1948,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry)
*uni_name.name = 0x0;
fs_func->get_uni_name_from_ext_entry(sb, &dir, dentry,
uni_name.name);
- nls_uniname_to_cstring(sb, dir_entry->Name, &uni_name);
+ nls_uniname_to_cstring(sb, dir_entry->name, &uni_name);
exfat_buf_unlock(sb, sector);

ep = get_entry_in_dir(sb, &clu, i + 1, NULL);
@@ -1991,7 +1991,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry)
}
}

- *dir_entry->Name = '\0';
+ *dir_entry->name = '\0';

fid->rwoffset = (s64)(++dentry);

@@ -2129,7 +2129,7 @@ static int exfat_readdir(struct file *filp, struct dir_context *ctx)

cpos = EXFAT_I(inode)->fid.rwoffset << DENTRY_SIZE_BITS;

- if (!de.Name[0])
+ if (!de.name[0])
goto end_of_dir;

if (!memcmp(de.ShortName, DOS_CUR_DIR_NAME, DOS_NAME_LENGTH)) {
@@ -2149,7 +2149,7 @@ static int exfat_readdir(struct file *filp, struct dir_context *ctx)
}
}

- if (!dir_emit(ctx, de.Name, strlen(de.Name), inum,
+ if (!dir_emit(ctx, de.name, strlen(de.name), inum,
(de.Attr & ATTR_SUBDIR) ? DT_DIR : DT_REG))
goto out;

--
2.17.1