aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/serio/libps2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/serio/libps2.c')
-rw-r--r--drivers/input/serio/libps2.c20
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>");
27MODULE_DESCRIPTION("PS/2 driver library"); 27MODULE_DESCRIPTION("PS/2 driver library");
28MODULE_LICENSE("GPL"); 28MODULE_LICENSE("GPL");
29 29
30EXPORT_SYMBOL(ps2_init);
31EXPORT_SYMBOL(ps2_sendbyte);
32EXPORT_SYMBOL(ps2_drain);
33EXPORT_SYMBOL(ps2_command);
34EXPORT_SYMBOL(ps2_schedule_command);
35EXPORT_SYMBOL(ps2_handle_ack);
36EXPORT_SYMBOL(ps2_handle_response);
37EXPORT_SYMBOL(ps2_cmd_aborted);
38EXPORT_SYMBOL(ps2_is_keyboard_id);
39
40/* Work structure to schedule execution of a command */ 30/* Work structure to schedule execution of a command */
41struct ps2work { 31struct 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}
65EXPORT_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}
91EXPORT_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}
111EXPORT_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}
247EXPORT_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}
290EXPORT_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}
302EXPORT_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}
348EXPORT_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}
374EXPORT_SYMBOL(ps2_handle_response);
377 375
378void ps2_cmd_aborted(struct ps2dev *ps2dev) 376void 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 386EXPORT_SYMBOL(ps2_cmd_aborted);