]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: core: Use octal permission
authorSoham Biswas <sohambiswas41@gmail.com>
Wed, 18 Nov 2020 14:51:12 +0000 (20:21 +0530)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 17 Dec 2020 13:19:00 +0000 (14:19 +0100)
commiteab3819ed0375c4494696d57a74f9530caac35bb
tree3db52069deb01d5f1a2dfd8348d34433cd9ff569
parentda5bd99b3c2623543aaee1e1105152130b2bd8b5
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>
drivers/pwm/core.c