Skip to content

Commit

Permalink
[PATCH] sysctl: C99 convert the ctl_tables in arch/mips/au1000/common…
Browse files Browse the repository at this point in the history
…/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>
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Feb 14, 2007
1 parent ee40456 commit 7ed744d
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions arch/mips/au1000/common/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,15 +419,41 @@ static int pm_do_freq(ctl_table * ctl, int write, struct file *file,


static struct ctl_table pm_table[] = {
{CTL_UNNUMBERED, "suspend", NULL, 0, 0600, NULL, &pm_do_suspend},
{CTL_UNNUMBERED, "sleep", NULL, 0, 0600, NULL, &pm_do_sleep},
{CTL_UNNUMBERED, "freq", NULL, 0, 0600, NULL, &pm_do_freq},
{0}
{
.ctl_name = CTL_UNNUMBERED,
.procname = "suspend",
.data = NULL,
.maxlen = 0,
.mode = 0600,
.proc_handler = &pm_do_suspend
},
{
.ctl_name = CTL_UNNUMBERED,
.procname = "sleep",
.data = NULL,
.maxlen = 0,
.mode = 0600,
.proc_handler = &pm_do_sleep
},
{
.ctl_name = CTL_UNNUMBERED,
.procname = "freq",
.data = NULL,
.maxlen = 0,
.mode = 0600,
.proc_handler = &pm_do_freq
},
{}
};

static struct ctl_table pm_dir_table[] = {
{CTL_UNNUMBERED, "pm", NULL, 0, 0555, pm_table},
{0}
{
.ctl_name = CTL_UNNUMBERED,
.procname = "pm",
.mode = 0555,
.child = pm_table
},
{}
};

/*
Expand Down

0 comments on commit 7ed744d

Please sign in to comment.