Commit 2eba9670 authored by Art Haas's avatar Art Haas Committed by Linus Torvalds

[PATCH] C99 initializers for drivers/char/rtc.c

parent a0978627
...@@ -211,19 +211,37 @@ static void rtc_interrupt(int irq, void *dev_id, struct pt_regs *regs) ...@@ -211,19 +211,37 @@ static void rtc_interrupt(int irq, void *dev_id, struct pt_regs *regs)
* sysctl-tuning infrastructure. * sysctl-tuning infrastructure.
*/ */
static ctl_table rtc_table[] = { static ctl_table rtc_table[] = {
{ 1, "max-user-freq", &rtc_max_user_freq, sizeof(int), 0644, NULL, {
&proc_dointvec, NULL, }, .ctl_name = 1,
{ 0, } .procname = "max-user-freq",
.data = &rtc_max_user_freq,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = &proc_dointvec,
},
{ .ctl_name = 0 }
}; };
static ctl_table rtc_root[] = { static ctl_table rtc_root[] = {
{ 1, "rtc", NULL, 0, 0555, rtc_table, }, {
{ 0, } .ctl_name = 1,
.procname = "rtc",
.maxlen = 0,
.mode = 0555,
.child = rtc_table,
},
{ .ctl_name = 0 }
}; };
static ctl_table dev_root[] = { static ctl_table dev_root[] = {
{ CTL_DEV, "dev", NULL, 0, 0555, rtc_root, }, {
{ 0, } .ctl_name = CTL_DEV,
.procname = "dev",
.maxlen = 0,
.mode = 0555,
.child = rtc_root,
},
{ .ctl_name = 0 }
}; };
static struct ctl_table_header *sysctl_header; static struct ctl_table_header *sysctl_header;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment