[SRU][J:linux-bluefield][PATCH v2 2/4] UBUNTU: SAUCE: mlxbf-ptm: use 0444 instead of S_IRUGO

Jitendra Lanka jlanka at nvidia.com
Wed Mar 22 15:39:55 UTC 2023


BugLink: https://bugs.launchpad.net/bugs/2011738

As recommended by checkscript, change S_IRUGO to 0444

Signed-off-by: Jitendra Lanka <jlanka at nvidia.com>
---
 drivers/platform/mellanox/mlxbf-ptm.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/drivers/platform/mellanox/mlxbf-ptm.c b/drivers/platform/mellanox/mlxbf-ptm.c
index 79c3e2902070..aeb68dc42e32 100644
--- a/drivers/platform/mellanox/mlxbf-ptm.c
+++ b/drivers/platform/mellanox/mlxbf-ptm.c
@@ -154,27 +154,27 @@ static int __init mlxbf_ptm_init(void)
 	monitors = debugfs_create_dir("monitors", ptm_root);
 	status = debugfs_create_dir("status", monitors);
 
-	debugfs_create_file("vr0_power", S_IRUGO, status, NULL,
+	debugfs_create_file("vr0_power", 0444, status, NULL,
 			    &vr0_power_fops);
-	debugfs_create_file("vr1_power", S_IRUGO, status, NULL,
+	debugfs_create_file("vr1_power", 0444, status, NULL,
 			    &vr1_power_fops);
-	debugfs_create_file("total_power", S_IRUGO, status, NULL,
+	debugfs_create_file("total_power", 0444, status, NULL,
 			    &total_power_fops);
-	debugfs_create_file("ddr_temp", S_IRUGO, status,
+	debugfs_create_file("ddr_temp", 0444, status,
 			    NULL, &ddr_thld_fops);
-	debugfs_create_file("core_temp", S_IRUGO, status,
+	debugfs_create_file("core_temp", 0444, status,
 			    NULL, &core_temp_fops);
-	debugfs_create_file("power_throttling_event_count", S_IRUGO, status,
+	debugfs_create_file("power_throttling_event_count", 0444, status,
 			    NULL, &pwr_evt_counter_fops);
-	debugfs_create_file("thermal_throttling_event_count", S_IRUGO, status,
+	debugfs_create_file("thermal_throttling_event_count", 0444, status,
 			    NULL, &temp_evt_counter_fops);
-	debugfs_create_file("throttling_state", S_IRUGO, status,
+	debugfs_create_file("throttling_state", 0444, status,
 			    NULL, &throttling_state_fops);
-	debugfs_create_file("power_throttling_state", S_IRUGO, status,
+	debugfs_create_file("power_throttling_state", 0444, status,
 			    NULL, &pthrottling_state_fops);
-	debugfs_create_file("thermal_throttling_state", S_IRUGO, status,
+	debugfs_create_file("thermal_throttling_state", 0444, status,
 			    NULL, &tthrottling_state_fops);
-	debugfs_create_file("error_state", S_IRUGO, status,
+	debugfs_create_file("error_state", 0444, status,
 			    NULL, &error_status_fops);
 
 	return 0;
-- 
2.30.1




More information about the kernel-team mailing list