All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pwm: core: Use octal permission
@ 2020-11-17 17:54 Soham Biswas
  2020-11-17 18:12 ` Lee Jones
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: Soham Biswas @ 2020-11-17 17:54 UTC (permalink / raw)
  To: thierry.reding
  Cc: lee.jones, u.kleine-koenig, linux-pwm, linux-kernel, Soham Biswas

Fixed Warning.
Replaced symbolic permission 'S_IRUGO' with octal permission '0444'.

Signed-off-by: Soham Biswas <sohambiswas41@gmail.com>
---
 drivers/pwm/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
index 1f16f5365d3c..a8eff4b3ee36 100644
--- a/drivers/pwm/core.c
+++ b/drivers/pwm/core.c
@@ -1338,7 +1338,7 @@ DEFINE_SEQ_ATTRIBUTE(pwm_debugfs);
 
 static int __init pwm_debugfs_init(void)
 {
-	debugfs_create_file("pwm", S_IFREG | S_IRUGO, NULL, NULL,
+	debugfs_create_file("pwm", S_IFREG | 0444, NULL, NULL,
 			    &pwm_debugfs_fops);
 
 	return 0;
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2020-11-18 19:48 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-17 17:54 [PATCH] pwm: core: Use octal permission Soham Biswas
2020-11-17 18:12 ` Lee Jones
2020-11-17 18:17   ` Soham Biswas
2020-11-17 18:21   ` Soham Biswas
2020-11-18  8:51     ` Lee Jones
2020-11-18  9:35       ` Uwe Kleine-König
2020-11-18  9:41         ` Joe Perches
2020-11-18  9:49           ` Lee Jones
2020-11-18  9:50           ` Uwe Kleine-König
2020-11-18 10:47 ` Soham Biswas
2020-11-18 12:43   ` [PATCH v2] " Uwe Kleine-König
2020-11-18 13:41     ` Soham Biswas
2020-11-18 13:48       ` Uwe Kleine-König
2020-11-18 13:49       ` Lee Jones
2020-11-18 13:58 ` [PATCH] " Soham Biswas
2020-11-18 14:06   ` Soham Biswas
2020-11-18 14:21     ` Uwe Kleine-König
2020-11-18 14:46       ` Lee Jones
2020-11-18 16:56         ` Uwe Kleine-König
2020-11-18 17:39           ` Soham Biswas
2020-11-18 14:51 ` [PATCH v3] " Soham Biswas
2020-11-18 14:55   ` Soham Biswas
2020-11-18 17:59   ` Thierry Reding
2020-11-18 18:39     ` Soham Biswas
2020-11-18 19:48     ` Uwe Kleine-König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.