Commit 0a8d8522 authored by Derek Robson's avatar Derek Robson Committed by Greg Kroah-Hartman

Staging: greybus: style fix, permissions as octal

Changed permissions to be in octal style.
Found by checkpatch.
Signed-off-by: default avatarDerek Robson <robsonde@gmail.com>
Acked-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 565af1cd
...@@ -1067,22 +1067,22 @@ struct gb_camera_debugfs_entry { ...@@ -1067,22 +1067,22 @@ struct gb_camera_debugfs_entry {
static const struct gb_camera_debugfs_entry gb_camera_debugfs_entries[] = { static const struct gb_camera_debugfs_entry gb_camera_debugfs_entries[] = {
{ {
.name = "capabilities", .name = "capabilities",
.mask = S_IFREG | S_IRUGO, .mask = S_IFREG | 0444,
.buffer = GB_CAMERA_DEBUGFS_BUFFER_CAPABILITIES, .buffer = GB_CAMERA_DEBUGFS_BUFFER_CAPABILITIES,
.execute = gb_camera_debugfs_capabilities, .execute = gb_camera_debugfs_capabilities,
}, { }, {
.name = "configure_streams", .name = "configure_streams",
.mask = S_IFREG | S_IRUGO | S_IWUGO, .mask = S_IFREG | 0666,
.buffer = GB_CAMERA_DEBUGFS_BUFFER_STREAMS, .buffer = GB_CAMERA_DEBUGFS_BUFFER_STREAMS,
.execute = gb_camera_debugfs_configure_streams, .execute = gb_camera_debugfs_configure_streams,
}, { }, {
.name = "capture", .name = "capture",
.mask = S_IFREG | S_IRUGO | S_IWUGO, .mask = S_IFREG | 0666,
.buffer = GB_CAMERA_DEBUGFS_BUFFER_CAPTURE, .buffer = GB_CAMERA_DEBUGFS_BUFFER_CAPTURE,
.execute = gb_camera_debugfs_capture, .execute = gb_camera_debugfs_capture,
}, { }, {
.name = "flush", .name = "flush",
.mask = S_IFREG | S_IRUGO | S_IWUGO, .mask = S_IFREG | 0666,
.buffer = GB_CAMERA_DEBUGFS_BUFFER_FLUSH, .buffer = GB_CAMERA_DEBUGFS_BUFFER_FLUSH,
.execute = gb_camera_debugfs_flush, .execute = gb_camera_debugfs_flush,
}, },
...@@ -1097,7 +1097,7 @@ static ssize_t gb_camera_debugfs_read(struct file *file, char __user *buf, ...@@ -1097,7 +1097,7 @@ static ssize_t gb_camera_debugfs_read(struct file *file, char __user *buf,
ssize_t ret; ssize_t ret;
/* For read-only entries the operation is triggered by a read. */ /* For read-only entries the operation is triggered by a read. */
if (!(op->mask & S_IWUGO)) { if (!(op->mask & 0222)) {
ret = op->execute(gcam, NULL, 0); ret = op->execute(gcam, NULL, 0);
if (ret < 0) if (ret < 0)
return ret; return ret;
......
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