Skip to content

Commit 6e1547f

Browse files
thierryredingkrzk
authored andcommitted
memory: tegra: Prefer octal over symbolic permissions
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 0a7e457 commit 6e1547f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/memory/tegra/tegra186-emc.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,12 @@ static int tegra186_emc_get_emc_dvfs_latency(struct tegra186_emc *emc)
212212
}
213213

214214
emc->debugfs.root = debugfs_create_dir("emc", NULL);
215-
debugfs_create_file("available_rates", S_IRUGO, emc->debugfs.root,
216-
emc, &tegra186_emc_debug_available_rates_fops);
217-
debugfs_create_file("min_rate", S_IRUGO | S_IWUSR, emc->debugfs.root,
218-
emc, &tegra186_emc_debug_min_rate_fops);
219-
debugfs_create_file("max_rate", S_IRUGO | S_IWUSR, emc->debugfs.root,
220-
emc, &tegra186_emc_debug_max_rate_fops);
215+
debugfs_create_file("available_rates", 0444, emc->debugfs.root, emc,
216+
&tegra186_emc_debug_available_rates_fops);
217+
debugfs_create_file("min_rate", 0644, emc->debugfs.root, emc,
218+
&tegra186_emc_debug_min_rate_fops);
219+
debugfs_create_file("max_rate", 0644, emc->debugfs.root, emc,
220+
&tegra186_emc_debug_max_rate_fops);
221221

222222
return 0;
223223
}

0 commit comments

Comments
 (0)