Commit 6163bcfc authored by Art Haas's avatar Art Haas Committed by Linus Torvalds

[PATCH] C99 designated initializer for include/linux/cpufreq.h

parent c9067e32
...@@ -206,41 +206,41 @@ enum { ...@@ -206,41 +206,41 @@ enum {
}; };
#define CTL_CPU_VARS_SPEED_MAX { \ #define CTL_CPU_VARS_SPEED_MAX { \
ctl_name: CPU_NR_FREQ_MAX, \ .ctl_name = CPU_NR_FREQ_MAX, \
data: &cpu_max_freq, \ .data = &cpu_max_freq, \
procname: "speed-max", \ .procname = "speed-max", \
maxlen: sizeof(cpu_max_freq),\ .maxlen = sizeof(cpu_max_freq),\
mode: 0444, \ .mode = 0444, \
proc_handler: proc_dointvec, } .proc_handler = proc_dointvec, }
#define CTL_CPU_VARS_SPEED_MIN { \ #define CTL_CPU_VARS_SPEED_MIN { \
ctl_name: CPU_NR_FREQ_MIN, \ .ctl_name = CPU_NR_FREQ_MIN, \
data: &cpu_min_freq, \ .data = &cpu_min_freq, \
procname: "speed-min", \ .procname = "speed-min", \
maxlen: sizeof(cpu_min_freq),\ .maxlen = sizeof(cpu_min_freq),\
mode: 0444, \ .mode = 0444, \
proc_handler: proc_dointvec, } .proc_handler = proc_dointvec, }
#define CTL_CPU_VARS_SPEED(cpunr) { \ #define CTL_CPU_VARS_SPEED(cpunr) { \
ctl_name: CPU_NR_FREQ, \ .ctl_name = CPU_NR_FREQ, \
procname: "speed", \ .procname = "speed", \
mode: 0644, \ .mode = 0644, \
proc_handler: cpufreq_procctl, \ .proc_handler = cpufreq_procctl, \
strategy: cpufreq_sysctl, \ .strategy = cpufreq_sysctl, \
extra1: (void*) (cpunr), } .extra1 = (void*) (cpunr), }
#define CTL_TABLE_CPU_VARS(cpunr) static ctl_table ctl_cpu_vars_##cpunr[] = {\ #define CTL_TABLE_CPU_VARS(cpunr) static ctl_table ctl_cpu_vars_##cpunr[] = {\
CTL_CPU_VARS_SPEED_MAX, \ CTL_CPU_VARS_SPEED_MAX, \
CTL_CPU_VARS_SPEED_MIN, \ CTL_CPU_VARS_SPEED_MIN, \
CTL_CPU_VARS_SPEED(cpunr), \ CTL_CPU_VARS_SPEED(cpunr), \
{ ctl_name: 0, }, } { .ctl_name = 0, }, }
/* the ctl_table entry for each CPU */ /* the ctl_table entry for each CPU */
#define CPU_ENUM(s) { \ #define CPU_ENUM(s) { \
ctl_name: (CPU_NR + s), \ .ctl_name = (CPU_NR + s), \
procname: #s, \ .procname = #s, \
mode: 0555, \ .mode = 0555, \
child: ctl_cpu_vars_##s } .child = ctl_cpu_vars_##s }
#endif /* CONFIG_CPU_FREQ_24_API */ #endif /* CONFIG_CPU_FREQ_24_API */
......
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