diff options
author | Jan Engelhardt <jengelh@computergmbh.de> | 2008-01-22 14:41:07 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-02-09 17:46:44 -0500 |
commit | 2ffd6e182c4b9ae7bebc385c021e7d083bab406a (patch) | |
tree | 4ec54edaadc93b261a175b086e296055a3461aee /arch | |
parent | 72e7ae8141fa98084383e167b77d4497a59e3e10 (diff) |
[ARM] constify function pointer tables
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-davinci/clock.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index d3941a7b0455..b7b0720bc1bb 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c | |||
@@ -1001,7 +1001,7 @@ static void c_stop(struct seq_file *m, void *v) | |||
1001 | { | 1001 | { |
1002 | } | 1002 | } |
1003 | 1003 | ||
1004 | struct seq_operations cpuinfo_op = { | 1004 | const struct seq_operations cpuinfo_op = { |
1005 | .start = c_start, | 1005 | .start = c_start, |
1006 | .next = c_next, | 1006 | .next = c_next, |
1007 | .stop = c_stop, | 1007 | .stop = c_stop, |
diff --git a/arch/arm/mach-davinci/clock.c b/arch/arm/mach-davinci/clock.c index 139ceaa35e24..4143828a9684 100644 --- a/arch/arm/mach-davinci/clock.c +++ b/arch/arm/mach-davinci/clock.c | |||
@@ -290,7 +290,7 @@ static int davinci_ck_show(struct seq_file *m, void *v) | |||
290 | return 0; | 290 | return 0; |
291 | } | 291 | } |
292 | 292 | ||
293 | static struct seq_operations davinci_ck_op = { | 293 | static const struct seq_operations davinci_ck_op = { |
294 | .start = davinci_ck_start, | 294 | .start = davinci_ck_start, |
295 | .next = davinci_ck_next, | 295 | .next = davinci_ck_next, |
296 | .stop = davinci_ck_stop, | 296 | .stop = davinci_ck_stop, |
@@ -302,7 +302,7 @@ static int davinci_ck_open(struct inode *inode, struct file *file) | |||
302 | return seq_open(file, &davinci_ck_op); | 302 | return seq_open(file, &davinci_ck_op); |
303 | } | 303 | } |
304 | 304 | ||
305 | static struct file_operations proc_davinci_ck_operations = { | 305 | static const struct file_operations proc_davinci_ck_operations = { |
306 | .open = davinci_ck_open, | 306 | .open = davinci_ck_open, |
307 | .read = seq_read, | 307 | .read = seq_read, |
308 | .llseek = seq_lseek, | 308 | .llseek = seq_lseek, |