projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26164ed
)
greybus: es1: struct file_operations needs to be const
author
Greg Kroah-Hartman
<greg@kroah.com>
Tue, 24 Mar 2015 19:08:12 +0000
(20:08 +0100)
committer
Greg Kroah-Hartman
<greg@kroah.com>
Tue, 24 Mar 2015 19:08:12 +0000
(20:08 +0100)
We aren't changing these pointers, so mark them read-only as that is the
preferred way.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/es1.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/greybus/es1.c
b/drivers/staging/greybus/es1.c
index 723d8b7a0eab06dd88ee1ed505929170027a9af4..7e612cbd813e936b2871db193f6eb6daedfa1bb0 100644
(file)
--- a/
drivers/staging/greybus/es1.c
+++ b/
drivers/staging/greybus/es1.c
@@
-540,7
+540,7
@@
static ssize_t apb1_log_read(struct file *f, char __user *buf,
return ret;
}
-static struct file_operations apb1_log_fops = {
+static
const
struct file_operations apb1_log_fops = {
.read = apb1_log_read,
};
@@
-599,7
+599,7
@@
static ssize_t apb1_log_enable_write(struct file *f, const char __user *buf,
return retval;
}
-static struct file_operations apb1_log_enable_fops = {
+static
const
struct file_operations apb1_log_enable_fops = {
.read = apb1_log_enable_read,
.write = apb1_log_enable_write,
};