mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
greybus: es1: struct file_operations needs to be const
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>
This commit is contained in:
parent
26164edb8f
commit
4600d03f80
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue