Commit 5206c0d5ec514733dd098cf658d71327d199c7a0

Authored by Dmitry Torokhov
1 parent 9807879bfd

Input: libps2 - rearrange exports

The new way is to mark function as exported right after its definition.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

Showing 1 changed file with 9 additions and 11 deletions Side-by-side Diff

drivers/input/serio/libps2.c
... ... @@ -27,16 +27,6 @@
27 27 MODULE_DESCRIPTION("PS/2 driver library");
28 28 MODULE_LICENSE("GPL");
29 29  
30   -EXPORT_SYMBOL(ps2_init);
31   -EXPORT_SYMBOL(ps2_sendbyte);
32   -EXPORT_SYMBOL(ps2_drain);
33   -EXPORT_SYMBOL(ps2_command);
34   -EXPORT_SYMBOL(ps2_schedule_command);
35   -EXPORT_SYMBOL(ps2_handle_ack);
36   -EXPORT_SYMBOL(ps2_handle_response);
37   -EXPORT_SYMBOL(ps2_cmd_aborted);
38   -EXPORT_SYMBOL(ps2_is_keyboard_id);
39   -
40 30 /* Work structure to schedule execution of a command */
41 31 struct ps2work {
42 32 struct work_struct work;
... ... @@ -72,6 +62,7 @@
72 62  
73 63 return -ps2dev->nak;
74 64 }
  65 +EXPORT_SYMBOL(ps2_sendbyte);
75 66  
76 67 /*
77 68 * ps2_drain() waits for device to transmit requested number of bytes
... ... @@ -97,6 +88,7 @@
97 88 msecs_to_jiffies(timeout));
98 89 mutex_unlock(&ps2dev->cmd_mutex);
99 90 }
  91 +EXPORT_SYMBOL(ps2_drain);
100 92  
101 93 /*
102 94 * ps2_is_keyboard_id() checks received ID byte against the list of
... ... @@ -116,6 +108,7 @@
116 108  
117 109 return memchr(keyboard_ids, id_byte, sizeof(keyboard_ids)) != NULL;
118 110 }
  111 +EXPORT_SYMBOL(ps2_is_keyboard_id);
119 112  
120 113 /*
121 114 * ps2_adjust_timeout() is called after receiving 1st byte of command
... ... @@ -251,6 +244,7 @@
251 244 mutex_unlock(&ps2dev->cmd_mutex);
252 245 return rc;
253 246 }
  247 +EXPORT_SYMBOL(ps2_command);
254 248  
255 249 /*
256 250 * ps2_execute_scheduled_command() sends a command, previously scheduled by
... ... @@ -293,6 +287,7 @@
293 287  
294 288 return 0;
295 289 }
  290 +EXPORT_SYMBOL(ps2_schedule_command);
296 291  
297 292 /*
298 293 * ps2_init() initializes ps2dev structure
... ... @@ -304,6 +299,7 @@
304 299 init_waitqueue_head(&ps2dev->wait);
305 300 ps2dev->serio = serio;
306 301 }
  302 +EXPORT_SYMBOL(ps2_init);
307 303  
308 304 /*
309 305 * ps2_handle_ack() is supposed to be used in interrupt handler
... ... @@ -349,6 +345,7 @@
349 345  
350 346 return 1;
351 347 }
  348 +EXPORT_SYMBOL(ps2_handle_ack);
352 349  
353 350 /*
354 351 * ps2_handle_response() is supposed to be used in interrupt handler
... ... @@ -374,6 +371,7 @@
374 371  
375 372 return 1;
376 373 }
  374 +EXPORT_SYMBOL(ps2_handle_response);
377 375  
378 376 void ps2_cmd_aborted(struct ps2dev *ps2dev)
379 377 {
... ... @@ -385,4 +383,5 @@
385 383  
386 384 ps2dev->flags = 0;
387 385 }
  386 +EXPORT_SYMBOL(ps2_cmd_aborted);