Commit 5eb969d0 authored by Joe Perches's avatar Joe Perches Committed by Benjamin Herrenschmidt

macintosh: Convert use of typedef ctl_table to struct ctl_table

This typedef is unnecessary and should just be removed.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent cc293bf7
...@@ -181,7 +181,7 @@ static void mac_hid_stop_emulation(void) ...@@ -181,7 +181,7 @@ static void mac_hid_stop_emulation(void)
mac_hid_destroy_emumouse(); 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, void __user *buffer, size_t *lenp,
loff_t *ppos) loff_t *ppos)
{ {
...@@ -214,7 +214,7 @@ static int mac_hid_toggle_emumouse(ctl_table *table, int write, ...@@ -214,7 +214,7 @@ static int mac_hid_toggle_emumouse(ctl_table *table, int write,
} }
/* file(s) in /proc/sys/dev/mac_hid */ /* 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", .procname = "mouse_button_emulation",
.data = &mouse_emulate_buttons, .data = &mouse_emulate_buttons,
...@@ -240,7 +240,7 @@ static ctl_table mac_hid_files[] = { ...@@ -240,7 +240,7 @@ static ctl_table mac_hid_files[] = {
}; };
/* dir in /proc/sys/dev */ /* dir in /proc/sys/dev */
static ctl_table mac_hid_dir[] = { static struct ctl_table mac_hid_dir[] = {
{ {
.procname = "mac_hid", .procname = "mac_hid",
.maxlen = 0, .maxlen = 0,
...@@ -251,7 +251,7 @@ static ctl_table mac_hid_dir[] = { ...@@ -251,7 +251,7 @@ static ctl_table mac_hid_dir[] = {
}; };
/* /proc/sys/dev itself, in case that is not there yet */ /* /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", .procname = "dev",
.maxlen = 0, .maxlen = 0,
......
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