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

staging: exfat: Rename variable 'ModifyTimestamp' to 'modify_timestamp'

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of identifier "ModifyTimestamp" to
"modify_timestamp"
Signed-off-by: default avatarPragat Pandya <pragat.pandya@gmail.com>
Link: https://lore.kernel.org/r/20200210183558.11836-19-pragat.pandya@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d9cd17a2
...@@ -269,7 +269,7 @@ struct dir_entry_t { ...@@ -269,7 +269,7 @@ struct dir_entry_t {
u64 Size; u64 Size;
u32 num_subdirs; u32 num_subdirs;
struct date_time_t create_timestamp; struct date_time_t create_timestamp;
struct date_time_t ModifyTimestamp; struct date_time_t modify_timestamp;
struct date_time_t AccessTimestamp; struct date_time_t AccessTimestamp;
}; };
......
...@@ -1452,7 +1452,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) ...@@ -1452,7 +1452,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info)
info->attr = ATTR_SUBDIR; info->attr = ATTR_SUBDIR;
memset((char *)&info->create_timestamp, 0, memset((char *)&info->create_timestamp, 0,
sizeof(struct date_time_t)); sizeof(struct date_time_t));
memset((char *)&info->ModifyTimestamp, 0, memset((char *)&info->modify_timestamp, 0,
sizeof(struct date_time_t)); sizeof(struct date_time_t));
memset((char *)&info->AccessTimestamp, 0, memset((char *)&info->AccessTimestamp, 0,
sizeof(struct date_time_t)); sizeof(struct date_time_t));
...@@ -1506,13 +1506,13 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) ...@@ -1506,13 +1506,13 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info)
info->create_timestamp.millisecond = 0; info->create_timestamp.millisecond = 0;
exfat_get_entry_time(ep, &tm, TM_MODIFY); exfat_get_entry_time(ep, &tm, TM_MODIFY);
info->ModifyTimestamp.year = tm.year; info->modify_timestamp.year = tm.year;
info->ModifyTimestamp.month = tm.mon; info->modify_timestamp.month = tm.mon;
info->ModifyTimestamp.day = tm.day; info->modify_timestamp.day = tm.day;
info->ModifyTimestamp.hour = tm.hour; info->modify_timestamp.hour = tm.hour;
info->ModifyTimestamp.minute = tm.min; info->modify_timestamp.minute = tm.min;
info->ModifyTimestamp.second = tm.sec; info->modify_timestamp.second = tm.sec;
info->ModifyTimestamp.millisecond = 0; info->modify_timestamp.millisecond = 0;
memset((char *)&info->AccessTimestamp, 0, sizeof(struct date_time_t)); memset((char *)&info->AccessTimestamp, 0, sizeof(struct date_time_t));
...@@ -1605,12 +1605,12 @@ static int ffsWriteStat(struct inode *inode, struct dir_entry_t *info) ...@@ -1605,12 +1605,12 @@ static int ffsWriteStat(struct inode *inode, struct dir_entry_t *info)
tm.year = info->create_timestamp.year; tm.year = info->create_timestamp.year;
exfat_set_entry_time(ep, &tm, TM_CREATE); exfat_set_entry_time(ep, &tm, TM_CREATE);
tm.sec = info->ModifyTimestamp.second; tm.sec = info->modify_timestamp.second;
tm.min = info->ModifyTimestamp.minute; tm.min = info->modify_timestamp.minute;
tm.hour = info->ModifyTimestamp.hour; tm.hour = info->modify_timestamp.hour;
tm.day = info->ModifyTimestamp.day; tm.day = info->modify_timestamp.day;
tm.mon = info->ModifyTimestamp.month; tm.mon = info->modify_timestamp.month;
tm.year = info->ModifyTimestamp.year; tm.year = info->modify_timestamp.year;
exfat_set_entry_time(ep, &tm, TM_MODIFY); exfat_set_entry_time(ep, &tm, TM_MODIFY);
exfat_set_entry_size(ep2, info->Size); exfat_set_entry_size(ep2, info->Size);
...@@ -1923,13 +1923,13 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry) ...@@ -1923,13 +1923,13 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry)
dir_entry->create_timestamp.millisecond = 0; dir_entry->create_timestamp.millisecond = 0;
exfat_get_entry_time(ep, &tm, TM_MODIFY); exfat_get_entry_time(ep, &tm, TM_MODIFY);
dir_entry->ModifyTimestamp.year = tm.year; dir_entry->modify_timestamp.year = tm.year;
dir_entry->ModifyTimestamp.month = tm.mon; dir_entry->modify_timestamp.month = tm.mon;
dir_entry->ModifyTimestamp.day = tm.day; dir_entry->modify_timestamp.day = tm.day;
dir_entry->ModifyTimestamp.hour = tm.hour; dir_entry->modify_timestamp.hour = tm.hour;
dir_entry->ModifyTimestamp.minute = tm.min; dir_entry->modify_timestamp.minute = tm.min;
dir_entry->ModifyTimestamp.second = tm.sec; dir_entry->modify_timestamp.second = tm.sec;
dir_entry->ModifyTimestamp.millisecond = 0; dir_entry->modify_timestamp.millisecond = 0;
memset((char *)&dir_entry->AccessTimestamp, 0, memset((char *)&dir_entry->AccessTimestamp, 0,
sizeof(struct date_time_t)); sizeof(struct date_time_t));
...@@ -3170,7 +3170,7 @@ static int exfat_fill_inode(struct inode *inode, struct file_id_t *fid) ...@@ -3170,7 +3170,7 @@ static int exfat_fill_inode(struct inode *inode, struct file_id_t *fid)
inode->i_blocks = ((i_size_read(inode) + (p_fs->cluster_size - 1)) inode->i_blocks = ((i_size_read(inode) + (p_fs->cluster_size - 1))
& ~((loff_t)p_fs->cluster_size - 1)) >> 9; & ~((loff_t)p_fs->cluster_size - 1)) >> 9;
exfat_time_fat2unix(&inode->i_mtime, &info.ModifyTimestamp); exfat_time_fat2unix(&inode->i_mtime, &info.modify_timestamp);
exfat_time_fat2unix(&inode->i_ctime, &info.create_timestamp); exfat_time_fat2unix(&inode->i_ctime, &info.create_timestamp);
exfat_time_fat2unix(&inode->i_atime, &info.AccessTimestamp); exfat_time_fat2unix(&inode->i_atime, &info.AccessTimestamp);
...@@ -3241,7 +3241,7 @@ static int exfat_write_inode(struct inode *inode, struct writeback_control *wbc) ...@@ -3241,7 +3241,7 @@ static int exfat_write_inode(struct inode *inode, struct writeback_control *wbc)
info.attr = exfat_make_attr(inode); info.attr = exfat_make_attr(inode);
info.Size = i_size_read(inode); info.Size = i_size_read(inode);
exfat_time_unix2fat(&inode->i_mtime, &info.ModifyTimestamp); exfat_time_unix2fat(&inode->i_mtime, &info.modify_timestamp);
exfat_time_unix2fat(&inode->i_ctime, &info.create_timestamp); exfat_time_unix2fat(&inode->i_ctime, &info.create_timestamp);
exfat_time_unix2fat(&inode->i_atime, &info.AccessTimestamp); exfat_time_unix2fat(&inode->i_atime, &info.AccessTimestamp);
......
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