aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2007-02-14 03:33:43 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-14 11:09:57 -0500
commit7ed744d1e8faed90aa027c08eeed21c4120e623d (patch)
treeefcd81e9b4ef39f03b1a337097bdcc1beb10e82b
parentee404566f97f9254433399fbbcfa05390c7c55f7 (diff)
[PATCH] sysctl: C99 convert the ctl_tables in arch/mips/au1000/common/power.c
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Acked-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--arch/mips/au1000/common/power.c38
1 files changed, 32 insertions, 6 deletions
diff --git a/arch/mips/au1000/common/power.c b/arch/mips/au1000/common/power.c
index b531ab747c90..31256b85df6d 100644
--- a/arch/mips/au1000/common/power.c
+++ b/arch/mips/au1000/common/power.c
@@ -419,15 +419,41 @@ static int pm_do_freq(ctl_table * ctl, int write, struct file *file,
419 419
420 420
421static struct ctl_table pm_table[] = { 421static struct ctl_table pm_table[] = {
422 {CTL_UNNUMBERED, "suspend", NULL, 0, 0600, NULL, &pm_do_suspend}, 422 {
423 {CTL_UNNUMBERED, "sleep", NULL, 0, 0600, NULL, &pm_do_sleep}, 423 .ctl_name = CTL_UNNUMBERED,
424 {CTL_UNNUMBERED, "freq", NULL, 0, 0600, NULL, &pm_do_freq}, 424 .procname = "suspend",
425 {0} 425 .data = NULL,
426 .maxlen = 0,
427 .mode = 0600,
428 .proc_handler = &pm_do_suspend
429 },
430 {
431 .ctl_name = CTL_UNNUMBERED,
432 .procname = "sleep",
433 .data = NULL,
434 .maxlen = 0,
435 .mode = 0600,
436 .proc_handler = &pm_do_sleep
437 },
438 {
439 .ctl_name = CTL_UNNUMBERED,
440 .procname = "freq",
441 .data = NULL,
442 .maxlen = 0,
443 .mode = 0600,
444 .proc_handler = &pm_do_freq
445 },
446 {}
426}; 447};
427 448
428static struct ctl_table pm_dir_table[] = { 449static struct ctl_table pm_dir_table[] = {
429 {CTL_UNNUMBERED, "pm", NULL, 0, 0555, pm_table}, 450 {
430 {0} 451 .ctl_name = CTL_UNNUMBERED,
452 .procname = "pm",
453 .mode = 0555,
454 .child = pm_table
455 },
456 {}
431}; 457};
432 458
433/* 459/*