diff options
author | Joe Perches <joe@perches.com> | 2013-06-13 22:37:35 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-17 19:43:08 -0400 |
commit | a151427ed086952cc28f1d5f1cda84c33e48e358 (patch) | |
tree | 55ebbc00fc8fcbc48036722f500fec99161f8eb2 /drivers/char | |
parent | c36c5736be5cc638db7659093bf8c2c7f48c5000 (diff) |
char: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/hpet.c | 6 | ||||
-rw-r--r-- | drivers/char/ipmi/ipmi_poweroff.c | 6 | ||||
-rw-r--r-- | drivers/char/random.c | 8 | ||||
-rw-r--r-- | drivers/char/rtc.c | 6 |
4 files changed, 13 insertions, 13 deletions
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index d784650d14f0..448ce5e29c56 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c | |||
@@ -725,7 +725,7 @@ static int hpet_is_known(struct hpet_data *hdp) | |||
725 | return 0; | 725 | return 0; |
726 | } | 726 | } |
727 | 727 | ||
728 | static ctl_table hpet_table[] = { | 728 | static struct ctl_table hpet_table[] = { |
729 | { | 729 | { |
730 | .procname = "max-user-freq", | 730 | .procname = "max-user-freq", |
731 | .data = &hpet_max_freq, | 731 | .data = &hpet_max_freq, |
@@ -736,7 +736,7 @@ static ctl_table hpet_table[] = { | |||
736 | {} | 736 | {} |
737 | }; | 737 | }; |
738 | 738 | ||
739 | static ctl_table hpet_root[] = { | 739 | static struct ctl_table hpet_root[] = { |
740 | { | 740 | { |
741 | .procname = "hpet", | 741 | .procname = "hpet", |
742 | .maxlen = 0, | 742 | .maxlen = 0, |
@@ -746,7 +746,7 @@ static ctl_table hpet_root[] = { | |||
746 | {} | 746 | {} |
747 | }; | 747 | }; |
748 | 748 | ||
749 | static ctl_table dev_root[] = { | 749 | static struct ctl_table dev_root[] = { |
750 | { | 750 | { |
751 | .procname = "dev", | 751 | .procname = "dev", |
752 | .maxlen = 0, | 752 | .maxlen = 0, |
diff --git a/drivers/char/ipmi/ipmi_poweroff.c b/drivers/char/ipmi/ipmi_poweroff.c index 2efa176beab0..9f2e3be2c5b8 100644 --- a/drivers/char/ipmi/ipmi_poweroff.c +++ b/drivers/char/ipmi/ipmi_poweroff.c | |||
@@ -659,7 +659,7 @@ static struct ipmi_smi_watcher smi_watcher = { | |||
659 | #ifdef CONFIG_PROC_FS | 659 | #ifdef CONFIG_PROC_FS |
660 | #include <linux/sysctl.h> | 660 | #include <linux/sysctl.h> |
661 | 661 | ||
662 | static ctl_table ipmi_table[] = { | 662 | static struct ctl_table ipmi_table[] = { |
663 | { .procname = "poweroff_powercycle", | 663 | { .procname = "poweroff_powercycle", |
664 | .data = &poweroff_powercycle, | 664 | .data = &poweroff_powercycle, |
665 | .maxlen = sizeof(poweroff_powercycle), | 665 | .maxlen = sizeof(poweroff_powercycle), |
@@ -668,14 +668,14 @@ static ctl_table ipmi_table[] = { | |||
668 | { } | 668 | { } |
669 | }; | 669 | }; |
670 | 670 | ||
671 | static ctl_table ipmi_dir_table[] = { | 671 | static struct ctl_table ipmi_dir_table[] = { |
672 | { .procname = "ipmi", | 672 | { .procname = "ipmi", |
673 | .mode = 0555, | 673 | .mode = 0555, |
674 | .child = ipmi_table }, | 674 | .child = ipmi_table }, |
675 | { } | 675 | { } |
676 | }; | 676 | }; |
677 | 677 | ||
678 | static ctl_table ipmi_root_table[] = { | 678 | static struct ctl_table ipmi_root_table[] = { |
679 | { .procname = "dev", | 679 | { .procname = "dev", |
680 | .mode = 0555, | 680 | .mode = 0555, |
681 | .child = ipmi_dir_table }, | 681 | .child = ipmi_dir_table }, |
diff --git a/drivers/char/random.c b/drivers/char/random.c index 35487e8ded59..0d91fe52f3f5 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c | |||
@@ -1381,10 +1381,10 @@ static char sysctl_bootid[16]; | |||
1381 | * as an ASCII string in the standard UUID format. If accesses via the | 1381 | * as an ASCII string in the standard UUID format. If accesses via the |
1382 | * sysctl system call, it is returned as 16 bytes of binary data. | 1382 | * sysctl system call, it is returned as 16 bytes of binary data. |
1383 | */ | 1383 | */ |
1384 | static int proc_do_uuid(ctl_table *table, int write, | 1384 | static int proc_do_uuid(struct ctl_table *table, int write, |
1385 | void __user *buffer, size_t *lenp, loff_t *ppos) | 1385 | void __user *buffer, size_t *lenp, loff_t *ppos) |
1386 | { | 1386 | { |
1387 | ctl_table fake_table; | 1387 | struct ctl_table fake_table; |
1388 | unsigned char buf[64], tmp_uuid[16], *uuid; | 1388 | unsigned char buf[64], tmp_uuid[16], *uuid; |
1389 | 1389 | ||
1390 | uuid = table->data; | 1390 | uuid = table->data; |
@@ -1409,8 +1409,8 @@ static int proc_do_uuid(ctl_table *table, int write, | |||
1409 | } | 1409 | } |
1410 | 1410 | ||
1411 | static int sysctl_poolsize = INPUT_POOL_WORDS * 32; | 1411 | static int sysctl_poolsize = INPUT_POOL_WORDS * 32; |
1412 | extern ctl_table random_table[]; | 1412 | extern struct ctl_table random_table[]; |
1413 | ctl_table random_table[] = { | 1413 | struct ctl_table random_table[] = { |
1414 | { | 1414 | { |
1415 | .procname = "poolsize", | 1415 | .procname = "poolsize", |
1416 | .data = &sysctl_poolsize, | 1416 | .data = &sysctl_poolsize, |
diff --git a/drivers/char/rtc.c b/drivers/char/rtc.c index 91470fdbab2a..c0cbbd429bdc 100644 --- a/drivers/char/rtc.c +++ b/drivers/char/rtc.c | |||
@@ -280,7 +280,7 @@ static irqreturn_t rtc_interrupt(int irq, void *dev_id) | |||
280 | /* | 280 | /* |
281 | * sysctl-tuning infrastructure. | 281 | * sysctl-tuning infrastructure. |
282 | */ | 282 | */ |
283 | static ctl_table rtc_table[] = { | 283 | static struct ctl_table rtc_table[] = { |
284 | { | 284 | { |
285 | .procname = "max-user-freq", | 285 | .procname = "max-user-freq", |
286 | .data = &rtc_max_user_freq, | 286 | .data = &rtc_max_user_freq, |
@@ -291,7 +291,7 @@ static ctl_table rtc_table[] = { | |||
291 | { } | 291 | { } |
292 | }; | 292 | }; |
293 | 293 | ||
294 | static ctl_table rtc_root[] = { | 294 | static struct ctl_table rtc_root[] = { |
295 | { | 295 | { |
296 | .procname = "rtc", | 296 | .procname = "rtc", |
297 | .mode = 0555, | 297 | .mode = 0555, |
@@ -300,7 +300,7 @@ static ctl_table rtc_root[] = { | |||
300 | { } | 300 | { } |
301 | }; | 301 | }; |
302 | 302 | ||
303 | static ctl_table dev_root[] = { | 303 | static struct ctl_table dev_root[] = { |
304 | { | 304 | { |
305 | .procname = "dev", | 305 | .procname = "dev", |
306 | .mode = 0555, | 306 | .mode = 0555, |