staging: exfat: Rename variable 'AccessTimestamp' to 'access_timestamp'
authorPragat Pandya <pragat.pandya@gmail.com>
Mon, 10 Feb 2020 18:35:58 +0000 (00:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 19:25:43 +0000 (11:25 -0800)
Fix checkpatch warning: Avoid CamelCase
Change all occurrences of identifier "AccessTimestamp" to
"access_timestamp"

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
Link: https://lore.kernel.org/r/20200210183558.11836-20-pragat.pandya@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/exfat/exfat.h
drivers/staging/exfat/exfat_super.c

index 19bfa10da8071313ed204b7aa98167d654066328..05e21839b3492dc4f1cd765afbece8581e8b3e6b 100644 (file)
@@ -270,7 +270,7 @@ struct dir_entry_t {
        u32 num_subdirs;
        struct date_time_t create_timestamp;
        struct date_time_t modify_timestamp;
-       struct date_time_t AccessTimestamp;
+       struct date_time_t access_timestamp;
 };
 
 struct timestamp_t {
index ac4f4a13b910dbc2796bcbd24ded2bdcae79af3c..8446444cf68ac9874f24b72251db285240d48154 100644 (file)
@@ -1454,7 +1454,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info)
                               sizeof(struct date_time_t));
                        memset((char *)&info->modify_timestamp, 0,
                               sizeof(struct date_time_t));
-                       memset((char *)&info->AccessTimestamp, 0,
+                       memset((char *)&info->access_timestamp, 0,
                               sizeof(struct date_time_t));
                        strcpy(info->short_name, ".");
                        strcpy(info->name, ".");
@@ -1514,7 +1514,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info)
        info->modify_timestamp.second = tm.sec;
        info->modify_timestamp.millisecond = 0;
 
-       memset((char *)&info->AccessTimestamp, 0, sizeof(struct date_time_t));
+       memset((char *)&info->access_timestamp, 0, sizeof(struct date_time_t));
 
        *uni_name.name = 0x0;
        /* XXX this is very bad for exfat cuz name is already included in es.
@@ -1931,7 +1931,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry)
                        dir_entry->modify_timestamp.second = tm.sec;
                        dir_entry->modify_timestamp.millisecond = 0;
 
-                       memset((char *)&dir_entry->AccessTimestamp, 0,
+                       memset((char *)&dir_entry->access_timestamp, 0,
                               sizeof(struct date_time_t));
 
                        *uni_name.name = 0x0;
@@ -3172,7 +3172,7 @@ static int exfat_fill_inode(struct inode *inode, struct file_id_t *fid)
 
        exfat_time_fat2unix(&inode->i_mtime, &info.modify_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.access_timestamp);
 
        return 0;
 }
@@ -3243,7 +3243,7 @@ static int exfat_write_inode(struct inode *inode, struct writeback_control *wbc)
 
        exfat_time_unix2fat(&inode->i_mtime, &info.modify_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.access_timestamp);
 
        ffsWriteStat(inode, &info);