aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2007-02-14 03:33:39 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-14 11:09:56 -0500
commit317ed68c01cd936a3651c2eb63c47ef2a1ff54e5 (patch)
tree9ebbe60498b890f80ec81bf077397aa434f4eced
parentdfd007a667982372bfb05583c17bf5d4124c3c50 (diff)
[PATCH] sysctl: C99 convert arch/frv/kernel/sysctl.c
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Acked-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--arch/frv/kernel/sysctl.c29
1 files changed, 24 insertions, 5 deletions
diff --git a/arch/frv/kernel/sysctl.c b/arch/frv/kernel/sysctl.c
index 37528ebef759..577ad16cf840 100644
--- a/arch/frv/kernel/sysctl.c
+++ b/arch/frv/kernel/sysctl.c
@@ -175,11 +175,25 @@ static int procctl_frv_pin_cxnr(ctl_table *table, int write, struct file *filp,
175 */ 175 */
176static struct ctl_table frv_table[] = 176static struct ctl_table frv_table[] =
177{ 177{
178 { 1, "cache-mode", NULL, 0, 0644, NULL, &procctl_frv_cachemode }, 178 {
179 .ctl_name = 1,
180 .procname = "cache-mode",
181 .data = NULL,
182 .maxlen = 0,
183 .mode = 0644,
184 .proc_handler = &procctl_frv_cachemode,
185 },
179#ifdef CONFIG_MMU 186#ifdef CONFIG_MMU
180 { 2, "pin-cxnr", NULL, 0, 0644, NULL, &procctl_frv_pin_cxnr }, 187 {
188 .ctl_name = 2,
189 .procname = "pin-cxnr",
190 .data = NULL,
191 .maxlen = 0,
192 .mode = 0644,
193 .proc_handler = &procctl_frv_pin_cxnr
194 },
181#endif 195#endif
182 { 0 } 196 {}
183}; 197};
184 198
185/* 199/*
@@ -188,8 +202,13 @@ static struct ctl_table frv_table[] =
188 */ 202 */
189static struct ctl_table frv_dir_table[] = 203static struct ctl_table frv_dir_table[] =
190{ 204{
191 {CTL_FRV, "frv", NULL, 0, 0555, frv_table}, 205 {
192 {0} 206 .ctl_name = CTL_FRV,
207 .procname = "frv",
208 .mode = 0555,
209 .child = frv_table
210 },
211 {}
193}; 212};
194 213
195/* 214/*