]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
memory: tegra: Prefer octal over symbolic permissions
authorThierry Reding <treding@nvidia.com>
Fri, 14 Jul 2023 15:01:16 +0000 (17:01 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 25 Jul 2023 20:09:36 +0000 (22:09 +0200)
checkpatch recommends using octal permissions instead of symbolic
permissions. Switch the debugfs files to use the former to silence
these warnings.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20230714150116.2823766-1-thierry.reding@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/memory/tegra/tegra186-emc.c

index 83981ae3ea8641641ad80ef74c467660deea7b15..4007f4e16d74f0fa4d5bf7527c0368dec622dc07 100644 (file)
@@ -212,12 +212,12 @@ static int tegra186_emc_get_emc_dvfs_latency(struct tegra186_emc *emc)
        }
 
        emc->debugfs.root = debugfs_create_dir("emc", NULL);
-       debugfs_create_file("available_rates", S_IRUGO, emc->debugfs.root,
-                           emc, &tegra186_emc_debug_available_rates_fops);
-       debugfs_create_file("min_rate", S_IRUGO | S_IWUSR, emc->debugfs.root,
-                           emc, &tegra186_emc_debug_min_rate_fops);
-       debugfs_create_file("max_rate", S_IRUGO | S_IWUSR, emc->debugfs.root,
-                           emc, &tegra186_emc_debug_max_rate_fops);
+       debugfs_create_file("available_rates", 0444, emc->debugfs.root, emc,
+                           &tegra186_emc_debug_available_rates_fops);
+       debugfs_create_file("min_rate", 0644, emc->debugfs.root, emc,
+                           &tegra186_emc_debug_min_rate_fops);
+       debugfs_create_file("max_rate", 0644, emc->debugfs.root, emc,
+                           &tegra186_emc_debug_max_rate_fops);
 
        return 0;
 }