]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
macintosh: Convert use of typedef ctl_table to struct ctl_table
authorJoe Perches <joe@perches.com>
Fri, 14 Jun 2013 02:37:37 +0000 (19:37 -0700)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 1 Jul 2013 01:10:35 +0000 (11:10 +1000)
This typedef is unnecessary and should just be removed.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/macintosh/mac_hid.c

index 6a82388505f0a83a6fb218d14edf039595a0a92b..80d30e8e33891fded712ff97a9240e8c68c618e4 100644 (file)
@@ -181,7 +181,7 @@ static void mac_hid_stop_emulation(void)
        mac_hid_destroy_emumouse();
 }
 
-static int mac_hid_toggle_emumouse(ctl_table *table, int write,
+static int mac_hid_toggle_emumouse(struct ctl_table *table, int write,
                                   void __user *buffer, size_t *lenp,
                                   loff_t *ppos)
 {
@@ -214,7 +214,7 @@ static int mac_hid_toggle_emumouse(ctl_table *table, int write,
 }
 
 /* file(s) in /proc/sys/dev/mac_hid */
-static ctl_table mac_hid_files[] = {
+static struct ctl_table mac_hid_files[] = {
        {
                .procname       = "mouse_button_emulation",
                .data           = &mouse_emulate_buttons,
@@ -240,7 +240,7 @@ static ctl_table mac_hid_files[] = {
 };
 
 /* dir in /proc/sys/dev */
-static ctl_table mac_hid_dir[] = {
+static struct ctl_table mac_hid_dir[] = {
        {
                .procname       = "mac_hid",
                .maxlen         = 0,
@@ -251,7 +251,7 @@ static ctl_table mac_hid_dir[] = {
 };
 
 /* /proc/sys/dev itself, in case that is not there yet */
-static ctl_table mac_hid_root_dir[] = {
+static struct ctl_table mac_hid_root_dir[] = {
        {
                .procname       = "dev",
                .maxlen         = 0,