Fix checkpatch warning: Avoid CamelCase
Change all occurrences of identifier "FreeClusters" to "free_clusters"

Signed-off-by: Pragat Pandya <pragat.pan...@gmail.com>
---
 drivers/staging/exfat/exfat.h       | 2 +-
 drivers/staging/exfat/exfat_super.c | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h
index df84a729d5d5..aa6c46628fdd 100644
--- a/drivers/staging/exfat/exfat.h
+++ b/drivers/staging/exfat/exfat.h
@@ -245,7 +245,7 @@ struct vol_info_t {
        u32      fat_type;
        u32      cluster_size;
        u32      num_clusters;
-       u32      FreeClusters;
+       u32      free_clusters;
        u32      UsedClusters;
 };
 
diff --git a/drivers/staging/exfat/exfat_super.c 
b/drivers/staging/exfat/exfat_super.c
index 59e18b37dd7d..dcccf4170afe 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -498,7 +498,7 @@ static int ffsGetVolInfo(struct super_block *sb, struct 
vol_info_t *info)
        info->cluster_size = p_fs->cluster_size;
        info->num_clusters = p_fs->num_clusters - 2; /* clu 0 & 1 */
        info->UsedClusters = p_fs->used_clusters;
-       info->FreeClusters = info->num_clusters - info->UsedClusters;
+       info->free_clusters = info->num_clusters - info->UsedClusters;
 
        if (p_fs->dev_ejected)
                err = -EIO;
@@ -3349,7 +3349,7 @@ static int exfat_statfs(struct dentry *dentry, struct 
kstatfs *buf)
                info.cluster_size = p_fs->cluster_size;
                info.num_clusters = p_fs->num_clusters - 2;
                info.UsedClusters = p_fs->used_clusters;
-               info.FreeClusters = info.num_clusters - info.UsedClusters;
+               info.free_clusters = info.num_clusters - info.UsedClusters;
 
                if (p_fs->dev_ejected)
                        pr_info("[EXFAT] statfs on device that is ejected\n");
@@ -3358,8 +3358,8 @@ static int exfat_statfs(struct dentry *dentry, struct 
kstatfs *buf)
        buf->f_type = sb->s_magic;
        buf->f_bsize = info.cluster_size;
        buf->f_blocks = info.num_clusters;
-       buf->f_bfree = info.FreeClusters;
-       buf->f_bavail = info.FreeClusters;
+       buf->f_bfree = info.free_clusters;
+       buf->f_bavail = info.free_clusters;
        buf->f_fsid.val[0] = (u32)id;
        buf->f_fsid.val[1] = (u32)(id >> 32);
        buf->f_namelen = 260;
-- 
2.17.1

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to