memory: tegra: Prefer octal over symbolic permissions
Subsystems (2)
PATCH 1/1 memory: tegra: Prefer octal over symbolic permissions
From: Thierry Reding <[email protected]>
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]>
--- drivers/memory/tegra/tegra186-emc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/memory/tegra/tegra186-emc.c +6 -6
@@ -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 ; }
Signature · 1 line
2.41.0
Krzysztof Kozlowski
AppliedQuoted 5 lines · Thierry Reding
checkpatch recommends using octal permissions instead of symbolic permissions. Switch the debugfs files to use the former to silence these warnings.
Applied, thanks!
[1/1] memory: tegra: Prefer octal over symbolic permissions
https://git.kernel.org/krzk/linux-mem-ctrl/c/f54abe0132e405cd482b8cad355cd680e3aec810
Best regards,
Signature · 1 line
Krzysztof Kozlowski <[email protected]>