Commit 317ed68c01cd936a3651c2eb63c47ef2a1ff54e5
Committed by
Linus Torvalds
1 parent
dfd007a667
[PATCH] sysctl: C99 convert arch/frv/kernel/sysctl.c
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Acked-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 24 additions and 5 deletions Side-by-side Diff
arch/frv/kernel/sysctl.c
... | ... | @@ -175,11 +175,25 @@ |
175 | 175 | */ |
176 | 176 | static struct ctl_table frv_table[] = |
177 | 177 | { |
178 | - { 1, "cache-mode", NULL, 0, 0644, NULL, &procctl_frv_cachemode }, | |
178 | + { | |
179 | + .ctl_name = 1, | |
180 | + .procname = "cache-mode", | |
181 | + .data = NULL, | |
182 | + .maxlen = 0, | |
183 | + .mode = 0644, | |
184 | + .proc_handler = &procctl_frv_cachemode, | |
185 | + }, | |
179 | 186 | #ifdef CONFIG_MMU |
180 | - { 2, "pin-cxnr", NULL, 0, 0644, NULL, &procctl_frv_pin_cxnr }, | |
187 | + { | |
188 | + .ctl_name = 2, | |
189 | + .procname = "pin-cxnr", | |
190 | + .data = NULL, | |
191 | + .maxlen = 0, | |
192 | + .mode = 0644, | |
193 | + .proc_handler = &procctl_frv_pin_cxnr | |
194 | + }, | |
181 | 195 | #endif |
182 | - { 0 } | |
196 | + {} | |
183 | 197 | }; |
184 | 198 | |
185 | 199 | /* |
... | ... | @@ -188,8 +202,13 @@ |
188 | 202 | */ |
189 | 203 | static struct ctl_table frv_dir_table[] = |
190 | 204 | { |
191 | - {CTL_FRV, "frv", NULL, 0, 0555, frv_table}, | |
192 | - {0} | |
205 | + { | |
206 | + .ctl_name = CTL_FRV, | |
207 | + .procname = "frv", | |
208 | + .mode = 0555, | |
209 | + .child = frv_table | |
210 | + }, | |
211 | + {} | |
193 | 212 | }; |
194 | 213 | |
195 | 214 | /* |