提交 2ffd6e18 编写于 作者: J Jan Engelhardt 提交者: Russell King

[ARM] constify function pointer tables

Signed-off-by: NJan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 72e7ae81
...@@ -1001,7 +1001,7 @@ static void c_stop(struct seq_file *m, void *v) ...@@ -1001,7 +1001,7 @@ static void c_stop(struct seq_file *m, void *v)
{ {
} }
struct seq_operations cpuinfo_op = { const struct seq_operations cpuinfo_op = {
.start = c_start, .start = c_start,
.next = c_next, .next = c_next,
.stop = c_stop, .stop = c_stop,
......
...@@ -290,7 +290,7 @@ static int davinci_ck_show(struct seq_file *m, void *v) ...@@ -290,7 +290,7 @@ static int davinci_ck_show(struct seq_file *m, void *v)
return 0; return 0;
} }
static struct seq_operations davinci_ck_op = { static const struct seq_operations davinci_ck_op = {
.start = davinci_ck_start, .start = davinci_ck_start,
.next = davinci_ck_next, .next = davinci_ck_next,
.stop = davinci_ck_stop, .stop = davinci_ck_stop,
...@@ -302,7 +302,7 @@ static int davinci_ck_open(struct inode *inode, struct file *file) ...@@ -302,7 +302,7 @@ static int davinci_ck_open(struct inode *inode, struct file *file)
return seq_open(file, &davinci_ck_op); return seq_open(file, &davinci_ck_op);
} }
static struct file_operations proc_davinci_ck_operations = { static const struct file_operations proc_davinci_ck_operations = {
.open = davinci_ck_open, .open = davinci_ck_open,
.read = seq_read, .read = seq_read,
.llseek = seq_lseek, .llseek = seq_lseek,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册