Commit d52f9973 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

greybus: es1: decimal modes are not what are wanted for debugfs

decimal is not octal, so use the proper mode settings for the debugfs
files.
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 4600d03f
......@@ -554,7 +554,7 @@ static void usb_log_enable(struct es1_ap_dev *es1, int enable)
apb1_log_task = kthread_run(apb1_log_poll, es1, "apb1_log");
if (apb1_log_task == ERR_PTR(-ENOMEM))
return;
apb1_log_dentry = debugfs_create_file("apb1_log", 444,
apb1_log_dentry = debugfs_create_file("apb1_log", S_IRUGO,
gb_debugfs_get(), NULL,
&apb1_log_fops);
} else {
......@@ -730,7 +730,8 @@ static int ap_probe(struct usb_interface *interface,
if (retval)
goto error;
apb1_log_enable_dentry = debugfs_create_file("apb1_log_enable", 666,
apb1_log_enable_dentry = debugfs_create_file("apb1_log_enable",
(S_IWUSR | S_IRUGO),
gb_debugfs_get(), es1,
&apb1_log_enable_fops);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment