diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2006-09-14 01:31:40 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2006-09-14 01:31:40 -0400 |
commit | 5206c0d5ec514733dd098cf658d71327d199c7a0 (patch) | |
tree | 44842f1f80ce95827e25608a482dbe6a3d546103 /drivers/input | |
parent | 9807879bfdc0c2b5106b4b378f5475c6a333d853 (diff) |
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/serio/libps2.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/drivers/input/serio/libps2.c b/drivers/input/serio/libps2.c index e0a2297a9d21..dcb16b5cbec0 100644 --- a/drivers/input/serio/libps2.c +++ b/drivers/input/serio/libps2.c | |||
@@ -27,16 +27,6 @@ MODULE_AUTHOR("Dmitry Torokhov <dtor@mail.ru>"); | |||
27 | MODULE_DESCRIPTION("PS/2 driver library"); | 27 | MODULE_DESCRIPTION("PS/2 driver library"); |
28 | MODULE_LICENSE("GPL"); | 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 | /* Work structure to schedule execution of a command */ | 30 | /* Work structure to schedule execution of a command */ |
41 | struct ps2work { | 31 | struct ps2work { |
42 | struct work_struct work; | 32 | struct work_struct work; |
@@ -72,6 +62,7 @@ int ps2_sendbyte(struct ps2dev *ps2dev, unsigned char byte, int timeout) | |||
72 | 62 | ||
73 | return -ps2dev->nak; | 63 | return -ps2dev->nak; |
74 | } | 64 | } |
65 | EXPORT_SYMBOL(ps2_sendbyte); | ||
75 | 66 | ||
76 | /* | 67 | /* |
77 | * ps2_drain() waits for device to transmit requested number of bytes | 68 | * ps2_drain() waits for device to transmit requested number of bytes |
@@ -97,6 +88,7 @@ void ps2_drain(struct ps2dev *ps2dev, int maxbytes, int timeout) | |||
97 | msecs_to_jiffies(timeout)); | 88 | msecs_to_jiffies(timeout)); |
98 | mutex_unlock(&ps2dev->cmd_mutex); | 89 | mutex_unlock(&ps2dev->cmd_mutex); |
99 | } | 90 | } |
91 | EXPORT_SYMBOL(ps2_drain); | ||
100 | 92 | ||
101 | /* | 93 | /* |
102 | * ps2_is_keyboard_id() checks received ID byte against the list of | 94 | * ps2_is_keyboard_id() checks received ID byte against the list of |
@@ -116,6 +108,7 @@ int ps2_is_keyboard_id(char id_byte) | |||
116 | 108 | ||
117 | return memchr(keyboard_ids, id_byte, sizeof(keyboard_ids)) != NULL; | 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 | * ps2_adjust_timeout() is called after receiving 1st byte of command | 114 | * ps2_adjust_timeout() is called after receiving 1st byte of command |
@@ -251,6 +244,7 @@ int ps2_command(struct ps2dev *ps2dev, unsigned char *param, int command) | |||
251 | mutex_unlock(&ps2dev->cmd_mutex); | 244 | mutex_unlock(&ps2dev->cmd_mutex); |
252 | return rc; | 245 | return rc; |
253 | } | 246 | } |
247 | EXPORT_SYMBOL(ps2_command); | ||
254 | 248 | ||
255 | /* | 249 | /* |
256 | * ps2_execute_scheduled_command() sends a command, previously scheduled by | 250 | * ps2_execute_scheduled_command() sends a command, previously scheduled by |
@@ -293,6 +287,7 @@ int ps2_schedule_command(struct ps2dev *ps2dev, unsigned char *param, int comman | |||
293 | 287 | ||
294 | return 0; | 288 | return 0; |
295 | } | 289 | } |
290 | EXPORT_SYMBOL(ps2_schedule_command); | ||
296 | 291 | ||
297 | /* | 292 | /* |
298 | * ps2_init() initializes ps2dev structure | 293 | * ps2_init() initializes ps2dev structure |
@@ -304,6 +299,7 @@ void ps2_init(struct ps2dev *ps2dev, struct serio *serio) | |||
304 | init_waitqueue_head(&ps2dev->wait); | 299 | init_waitqueue_head(&ps2dev->wait); |
305 | ps2dev->serio = serio; | 300 | ps2dev->serio = serio; |
306 | } | 301 | } |
302 | EXPORT_SYMBOL(ps2_init); | ||
307 | 303 | ||
308 | /* | 304 | /* |
309 | * ps2_handle_ack() is supposed to be used in interrupt handler | 305 | * ps2_handle_ack() is supposed to be used in interrupt handler |
@@ -349,6 +345,7 @@ int ps2_handle_ack(struct ps2dev *ps2dev, unsigned char data) | |||
349 | 345 | ||
350 | return 1; | 346 | return 1; |
351 | } | 347 | } |
348 | EXPORT_SYMBOL(ps2_handle_ack); | ||
352 | 349 | ||
353 | /* | 350 | /* |
354 | * ps2_handle_response() is supposed to be used in interrupt handler | 351 | * ps2_handle_response() is supposed to be used in interrupt handler |
@@ -374,6 +371,7 @@ int ps2_handle_response(struct ps2dev *ps2dev, unsigned char data) | |||
374 | 371 | ||
375 | return 1; | 372 | return 1; |
376 | } | 373 | } |
374 | EXPORT_SYMBOL(ps2_handle_response); | ||
377 | 375 | ||
378 | void ps2_cmd_aborted(struct ps2dev *ps2dev) | 376 | void ps2_cmd_aborted(struct ps2dev *ps2dev) |
379 | { | 377 | { |
@@ -385,4 +383,4 @@ void ps2_cmd_aborted(struct ps2dev *ps2dev) | |||
385 | 383 | ||
386 | ps2dev->flags = 0; | 384 | ps2dev->flags = 0; |
387 | } | 385 | } |
388 | 386 | EXPORT_SYMBOL(ps2_cmd_aborted); | |