diff options
author | Pragat Pandya <pragat.pandya@gmail.com> | 2020-02-10 21:35:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-11 22:25:42 +0300 |
commit | cc3edc28b9adf4a31895aefc49e610e3249bc7a7 (patch) | |
tree | 6f33320e13c69ae3e7536f6a681d455279463284 /drivers | |
parent | 731e7914190b33e3ab752821ffc240e95c9cea9d (diff) | |
download | linux-cc3edc28b9adf4a31895aefc49e610e3249bc7a7.tar.xz |
staging: exfat: Rename variable 'ShortName' to 'short_name'
Fix checkpatch warning: Avoid CamelCase
Change all occurrences of identifier "ShortName" to "short_name"
Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
Link: https://lore.kernel.org/r/20200210183558.11836-15-pragat.pandya@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/exfat/exfat.h | 2 | ||||
-rw-r--r-- | drivers/staging/exfat/exfat_super.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h index aab3d850f1b9..5deb6667bf77 100644 --- a/drivers/staging/exfat/exfat.h +++ b/drivers/staging/exfat/exfat.h @@ -263,7 +263,7 @@ struct dir_entry_t { char name[MAX_NAME_LENGTH * MAX_CHARSET_SIZE]; /* used only for FAT12/16/32, not used for exFAT */ - char ShortName[DOS_NAME_LENGTH + 2]; + char short_name[DOS_NAME_LENGTH + 2]; u32 Attr; u64 Size; diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c index cbb9b02e5515..7409ddc39e1f 100644 --- a/drivers/staging/exfat/exfat_super.c +++ b/drivers/staging/exfat/exfat_super.c @@ -1456,7 +1456,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) sizeof(struct date_time_t)); memset((char *)&info->AccessTimestamp, 0, sizeof(struct date_time_t)); - strcpy(info->ShortName, "."); + strcpy(info->short_name, "."); strcpy(info->name, "."); dir.dir = p_fs->root_dir; @@ -2111,9 +2111,9 @@ get_new: if (!de.name[0]) goto end_of_dir; - if (!memcmp(de.ShortName, DOS_CUR_DIR_NAME, DOS_NAME_LENGTH)) { + if (!memcmp(de.short_name, DOS_CUR_DIR_NAME, DOS_NAME_LENGTH)) { inum = inode->i_ino; - } else if (!memcmp(de.ShortName, DOS_PAR_DIR_NAME, DOS_NAME_LENGTH)) { + } else if (!memcmp(de.short_name, DOS_PAR_DIR_NAME, DOS_NAME_LENGTH)) { inum = parent_ino(filp->f_path.dentry); } else { loff_t i_pos = ((loff_t)EXFAT_I(inode)->fid.start_clu << 32) | |