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>
return ret;
}
-static struct file_operations apb1_log_fops = {
+static const struct file_operations apb1_log_fops = {
.read = apb1_log_read,
};
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,
};