Skip to content

Commit 7ed744d

Browse files
ebiedermLinus Torvalds
authored andcommitted
[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>
1 parent ee40456 commit 7ed744d

1 file changed

Lines changed: 32 additions & 6 deletions

File tree

‎arch/mips/au1000/common/power.c‎

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -419,15 +419,41 @@ static int pm_do_freq(ctl_table * ctl, int write, struct file *file,
419419

420420

421421
static struct ctl_table pm_table[] = {
422-
{CTL_UNNUMBERED, "suspend", NULL, 0, 0600, NULL, &pm_do_suspend},
423-
{CTL_UNNUMBERED, "sleep", NULL, 0, 0600, NULL, &pm_do_sleep},
424-
{CTL_UNNUMBERED, "freq", NULL, 0, 0600, NULL, &pm_do_freq},
425-
{0}
422+
{
423+
.ctl_name = CTL_UNNUMBERED,
424+
.procname = "suspend",
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+
{}
426447
};
427448

428449
static struct ctl_table pm_dir_table[] = {
429-
{CTL_UNNUMBERED, "pm", NULL, 0, 0555, pm_table},
430-
{0}
450+
{
451+
.ctl_name = CTL_UNNUMBERED,
452+
.procname = "pm",
453+
.mode = 0555,
454+
.child = pm_table
455+
},
456+
{}
431457
};
432458

433459
/*

0 commit comments

Comments
 (0)