diff options
author | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2018-03-23 13:42:45 -0400 |
---|---|---|
committer | Benson Leung <bleung@chromium.org> | 2018-04-11 01:24:16 -0400 |
commit | f63192800ebd01099d3487f7fef1dd0ee0b18b45 (patch) | |
tree | d1256a0fc7c024165f5d9286edff37fcb92ef661 | |
parent | 7d800c99ecfab57845c5ae29ed0aefb36c055c2b (diff) |
platform/chrome: cros_ec_debugfs: Use octal permissions '0444'
Fixed the following checkpatch warning:
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider
using octal permissions '0444'.
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
-rw-r--r-- | drivers/platform/chrome/cros_ec_debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/chrome/cros_ec_debugfs.c b/drivers/platform/chrome/cros_ec_debugfs.c index 0e88e18362c1..539403022568 100644 --- a/drivers/platform/chrome/cros_ec_debugfs.c +++ b/drivers/platform/chrome/cros_ec_debugfs.c | |||
@@ -288,7 +288,7 @@ static int cros_ec_create_console_log(struct cros_ec_debugfs *debug_info) | |||
288 | init_waitqueue_head(&debug_info->log_wq); | 288 | init_waitqueue_head(&debug_info->log_wq); |
289 | 289 | ||
290 | if (!debugfs_create_file("console_log", | 290 | if (!debugfs_create_file("console_log", |
291 | S_IFREG | S_IRUGO, | 291 | S_IFREG | 0444, |
292 | debug_info->dir, | 292 | debug_info->dir, |
293 | debug_info, | 293 | debug_info, |
294 | &cros_ec_console_log_fops)) | 294 | &cros_ec_console_log_fops)) |
@@ -341,7 +341,7 @@ static int cros_ec_create_panicinfo(struct cros_ec_debugfs *debug_info) | |||
341 | debug_info->panicinfo_blob.size = ret; | 341 | debug_info->panicinfo_blob.size = ret; |
342 | 342 | ||
343 | if (!debugfs_create_blob("panicinfo", | 343 | if (!debugfs_create_blob("panicinfo", |
344 | S_IFREG | S_IRUGO, | 344 | S_IFREG | 0444, |
345 | debug_info->dir, | 345 | debug_info->dir, |
346 | &debug_info->panicinfo_blob)) { | 346 | &debug_info->panicinfo_blob)) { |
347 | ret = -ENOMEM; | 347 | ret = -ENOMEM; |