aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm
diff options
context:
space:
mode:
authorSoham Biswas <sohambiswas41@gmail.com>2020-11-18 20:21:12 +0530
committerThierry Reding <thierry.reding@gmail.com>2020-12-17 14:19:00 +0100
commit765edf0bf019ff8a7ae2dedbccd8af370b0856b5 (patch)
tree3db52069deb01d5f1a2dfd8348d34433cd9ff569 /drivers/pwm
parentpwm: lpss: Make compilable with COMPILE_TEST (diff)
downloadlinux-dev-765edf0bf019ff8a7ae2dedbccd8af370b0856b5.tar.xz
linux-dev-765edf0bf019ff8a7ae2dedbccd8af370b0856b5.zip
pwm: core: Use octal permission
Permission bits are easier readable in octal than with using the symbolic names. Fixes the following warning generated by checkpatch: WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. #1341: FILE: drivers/pwm/core.c:1341: + debugfs_create_file("pwm", S_IFREG | S_IRUGO, NULL, NULL, Signed-off-by: Soham Biswas <sohambiswas41@gmail.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm')
-rw-r--r--drivers/pwm/core.c2
1 files changed, 1 insertions, 1 deletions
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;