aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-06-13 22:37:37 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-06-30 21:10:35 -0400
commit5eb969d0e8b8f38fca0b2c6c76f5dca01449664a (patch)
treec02bd7cafb58419bd3a5fa5a7c2c0f0f2af9b505
parentcc293bf7a9aa6fad68d107c79705732bd2fc57e3 (diff)
macintosh: 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: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r--drivers/macintosh/mac_hid.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/macintosh/mac_hid.c b/drivers/macintosh/mac_hid.c
index 6a82388505f0..80d30e8e3389 100644
--- a/drivers/macintosh/mac_hid.c
+++ b/drivers/macintosh/mac_hid.c
@@ -181,7 +181,7 @@ static void mac_hid_stop_emulation(void)
181 mac_hid_destroy_emumouse(); 181 mac_hid_destroy_emumouse();
182} 182}
183 183
184static int mac_hid_toggle_emumouse(ctl_table *table, int write, 184static int mac_hid_toggle_emumouse(struct ctl_table *table, int write,
185 void __user *buffer, size_t *lenp, 185 void __user *buffer, size_t *lenp,
186 loff_t *ppos) 186 loff_t *ppos)
187{ 187{
@@ -214,7 +214,7 @@ static int mac_hid_toggle_emumouse(ctl_table *table, int write,
214} 214}
215 215
216/* file(s) in /proc/sys/dev/mac_hid */ 216/* file(s) in /proc/sys/dev/mac_hid */
217static ctl_table mac_hid_files[] = { 217static struct ctl_table mac_hid_files[] = {
218 { 218 {
219 .procname = "mouse_button_emulation", 219 .procname = "mouse_button_emulation",
220 .data = &mouse_emulate_buttons, 220 .data = &mouse_emulate_buttons,
@@ -240,7 +240,7 @@ static ctl_table mac_hid_files[] = {
240}; 240};
241 241
242/* dir in /proc/sys/dev */ 242/* dir in /proc/sys/dev */
243static ctl_table mac_hid_dir[] = { 243static struct ctl_table mac_hid_dir[] = {
244 { 244 {
245 .procname = "mac_hid", 245 .procname = "mac_hid",
246 .maxlen = 0, 246 .maxlen = 0,
@@ -251,7 +251,7 @@ static ctl_table mac_hid_dir[] = {
251}; 251};
252 252
253/* /proc/sys/dev itself, in case that is not there yet */ 253/* /proc/sys/dev itself, in case that is not there yet */
254static ctl_table mac_hid_root_dir[] = { 254static struct ctl_table mac_hid_root_dir[] = {
255 { 255 {
256 .procname = "dev", 256 .procname = "dev",
257 .maxlen = 0, 257 .maxlen = 0,