diff options
| author | Joe Perches <joe@perches.com> | 2013-06-13 21:37:29 -0400 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2013-06-17 18:31:32 -0400 |
| commit | d3478d5b73efb713378bebb31ac9a11f5a6dc587 (patch) | |
| tree | a51d250a807eab0a9f165a27d16bf92b74d3f671 /arch/mips/lasat | |
| parent | b8061134f83a36b9eb6e38a184f3982f8d8bc58c (diff) | |
mips: lasat: sysctl: Convert use of typedef ctl_table to struct ctl_table
This typedef is unnecessary and should just be removed.
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Jiri Kosina <trivial@kernel.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/5460/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/lasat')
| -rw-r--r-- | arch/mips/lasat/sysctl.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/mips/lasat/sysctl.c b/arch/mips/lasat/sysctl.c index f27694fb2ad1..3b7f65cc4218 100644 --- a/arch/mips/lasat/sysctl.c +++ b/arch/mips/lasat/sysctl.c | |||
| @@ -39,7 +39,7 @@ | |||
| 39 | 39 | ||
| 40 | 40 | ||
| 41 | /* And the same for proc */ | 41 | /* And the same for proc */ |
| 42 | int proc_dolasatstring(ctl_table *table, int write, | 42 | int proc_dolasatstring(struct ctl_table *table, int write, |
| 43 | void *buffer, size_t *lenp, loff_t *ppos) | 43 | void *buffer, size_t *lenp, loff_t *ppos) |
| 44 | { | 44 | { |
| 45 | int r; | 45 | int r; |
| @@ -54,7 +54,7 @@ int proc_dolasatstring(ctl_table *table, int write, | |||
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | /* proc function to write EEPROM after changing int entry */ | 56 | /* proc function to write EEPROM after changing int entry */ |
| 57 | int proc_dolasatint(ctl_table *table, int write, | 57 | int proc_dolasatint(struct ctl_table *table, int write, |
| 58 | void *buffer, size_t *lenp, loff_t *ppos) | 58 | void *buffer, size_t *lenp, loff_t *ppos) |
| 59 | { | 59 | { |
| 60 | int r; | 60 | int r; |
| @@ -72,7 +72,7 @@ int proc_dolasatint(ctl_table *table, int write, | |||
| 72 | static int rtctmp; | 72 | static int rtctmp; |
| 73 | 73 | ||
| 74 | /* proc function to read/write RealTime Clock */ | 74 | /* proc function to read/write RealTime Clock */ |
| 75 | int proc_dolasatrtc(ctl_table *table, int write, | 75 | int proc_dolasatrtc(struct ctl_table *table, int write, |
| 76 | void *buffer, size_t *lenp, loff_t *ppos) | 76 | void *buffer, size_t *lenp, loff_t *ppos) |
| 77 | { | 77 | { |
| 78 | struct timespec ts; | 78 | struct timespec ts; |
| @@ -97,7 +97,7 @@ int proc_dolasatrtc(ctl_table *table, int write, | |||
| 97 | #endif | 97 | #endif |
| 98 | 98 | ||
| 99 | #ifdef CONFIG_INET | 99 | #ifdef CONFIG_INET |
| 100 | int proc_lasat_ip(ctl_table *table, int write, | 100 | int proc_lasat_ip(struct ctl_table *table, int write, |
| 101 | void *buffer, size_t *lenp, loff_t *ppos) | 101 | void *buffer, size_t *lenp, loff_t *ppos) |
| 102 | { | 102 | { |
| 103 | unsigned int ip; | 103 | unsigned int ip; |
| @@ -157,7 +157,7 @@ int proc_lasat_ip(ctl_table *table, int write, | |||
| 157 | } | 157 | } |
| 158 | #endif | 158 | #endif |
| 159 | 159 | ||
| 160 | int proc_lasat_prid(ctl_table *table, int write, | 160 | int proc_lasat_prid(struct ctl_table *table, int write, |
| 161 | void *buffer, size_t *lenp, loff_t *ppos) | 161 | void *buffer, size_t *lenp, loff_t *ppos) |
| 162 | { | 162 | { |
| 163 | int r; | 163 | int r; |
| @@ -176,7 +176,7 @@ int proc_lasat_prid(ctl_table *table, int write, | |||
| 176 | 176 | ||
| 177 | extern int lasat_boot_to_service; | 177 | extern int lasat_boot_to_service; |
| 178 | 178 | ||
| 179 | static ctl_table lasat_table[] = { | 179 | static struct ctl_table lasat_table[] = { |
| 180 | { | 180 | { |
| 181 | .procname = "cpu-hz", | 181 | .procname = "cpu-hz", |
| 182 | .data = &lasat_board_info.li_cpu_hz, | 182 | .data = &lasat_board_info.li_cpu_hz, |
| @@ -262,7 +262,7 @@ static ctl_table lasat_table[] = { | |||
| 262 | {} | 262 | {} |
| 263 | }; | 263 | }; |
| 264 | 264 | ||
| 265 | static ctl_table lasat_root_table[] = { | 265 | static struct ctl_table lasat_root_table[] = { |
| 266 | { | 266 | { |
| 267 | .procname = "lasat", | 267 | .procname = "lasat", |
| 268 | .mode = 0555, | 268 | .mode = 0555, |
