Commit 731e7914 authored by Pragat Pandya's avatar Pragat Pandya Committed by Greg Kroah-Hartman

staging: exfat: Rename variable 'Name' to 'name'

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of identifier "Name" to "name"
Signed-off-by: default avatarPragat Pandya <pragat.pandya@gmail.com>
Link: https://lore.kernel.org/r/20200210183558.11836-14-pragat.pandya@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 36b392b0
...@@ -260,7 +260,7 @@ struct file_id_t { ...@@ -260,7 +260,7 @@ struct file_id_t {
}; };
struct dir_entry_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 */ /* used only for FAT12/16/32, not used for exFAT */
char ShortName[DOS_NAME_LENGTH + 2]; char ShortName[DOS_NAME_LENGTH + 2];
......
...@@ -1457,7 +1457,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) ...@@ -1457,7 +1457,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info)
memset((char *)&info->AccessTimestamp, 0, memset((char *)&info->AccessTimestamp, 0,
sizeof(struct date_time_t)); sizeof(struct date_time_t));
strcpy(info->ShortName, "."); strcpy(info->ShortName, ".");
strcpy(info->Name, "."); strcpy(info->name, ".");
dir.dir = p_fs->root_dir; dir.dir = p_fs->root_dir;
dir.flags = 0x01; dir.flags = 0x01;
...@@ -1522,7 +1522,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) ...@@ -1522,7 +1522,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info)
*/ */
exfat_get_uni_name_from_ext_entry(sb, &fid->dir, fid->entry, exfat_get_uni_name_from_ext_entry(sb, &fid->dir, fid->entry,
uni_name.name); uni_name.name);
nls_uniname_to_cstring(sb, info->Name, &uni_name); nls_uniname_to_cstring(sb, info->name, &uni_name);
info->NumSubdirs = 2; info->NumSubdirs = 2;
...@@ -1937,7 +1937,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry) ...@@ -1937,7 +1937,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry)
*uni_name.name = 0x0; *uni_name.name = 0x0;
exfat_get_uni_name_from_ext_entry(sb, &dir, dentry, exfat_get_uni_name_from_ext_entry(sb, &dir, dentry,
uni_name.name); 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); exfat_buf_unlock(sb, sector);
ep = get_entry_in_dir(sb, &clu, i + 1, NULL); ep = get_entry_in_dir(sb, &clu, i + 1, NULL);
...@@ -1980,7 +1980,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry) ...@@ -1980,7 +1980,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); fid->rwoffset = (s64)(++dentry);
...@@ -2108,7 +2108,7 @@ static int exfat_readdir(struct file *filp, struct dir_context *ctx) ...@@ -2108,7 +2108,7 @@ static int exfat_readdir(struct file *filp, struct dir_context *ctx)
cpos = EXFAT_I(inode)->fid.rwoffset << DENTRY_SIZE_BITS; cpos = EXFAT_I(inode)->fid.rwoffset << DENTRY_SIZE_BITS;
if (!de.Name[0]) if (!de.name[0])
goto end_of_dir; goto end_of_dir;
if (!memcmp(de.ShortName, DOS_CUR_DIR_NAME, DOS_NAME_LENGTH)) { if (!memcmp(de.ShortName, DOS_CUR_DIR_NAME, DOS_NAME_LENGTH)) {
...@@ -2128,7 +2128,7 @@ static int exfat_readdir(struct file *filp, struct dir_context *ctx) ...@@ -2128,7 +2128,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)) (de.Attr & ATTR_SUBDIR) ? DT_DIR : DT_REG))
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment