diff options
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/input.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index 7570a3f52f18..de2e7546b491 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c | |||
@@ -28,21 +28,6 @@ MODULE_AUTHOR("Vojtech Pavlik <vojtech@suse.cz>"); | |||
28 | MODULE_DESCRIPTION("Input core"); | 28 | MODULE_DESCRIPTION("Input core"); |
29 | MODULE_LICENSE("GPL"); | 29 | MODULE_LICENSE("GPL"); |
30 | 30 | ||
31 | EXPORT_SYMBOL(input_allocate_device); | ||
32 | EXPORT_SYMBOL(input_free_device); | ||
33 | EXPORT_SYMBOL(input_register_device); | ||
34 | EXPORT_SYMBOL(input_unregister_device); | ||
35 | EXPORT_SYMBOL(input_register_handler); | ||
36 | EXPORT_SYMBOL(input_unregister_handler); | ||
37 | EXPORT_SYMBOL(input_grab_device); | ||
38 | EXPORT_SYMBOL(input_release_device); | ||
39 | EXPORT_SYMBOL(input_open_device); | ||
40 | EXPORT_SYMBOL(input_close_device); | ||
41 | EXPORT_SYMBOL(input_accept_process); | ||
42 | EXPORT_SYMBOL(input_flush_device); | ||
43 | EXPORT_SYMBOL(input_event); | ||
44 | EXPORT_SYMBOL_GPL(input_class); | ||
45 | |||
46 | #define INPUT_DEVICES 256 | 31 | #define INPUT_DEVICES 256 |
47 | 32 | ||
48 | static LIST_HEAD(input_dev_list); | 33 | static LIST_HEAD(input_dev_list); |
@@ -196,6 +181,7 @@ void input_event(struct input_dev *dev, unsigned int type, unsigned int code, in | |||
196 | if (handle->open) | 181 | if (handle->open) |
197 | handle->handler->event(handle, type, code, value); | 182 | handle->handler->event(handle, type, code, value); |
198 | } | 183 | } |
184 | EXPORT_SYMBOL(input_event); | ||
199 | 185 | ||
200 | static void input_repeat_key(unsigned long data) | 186 | static void input_repeat_key(unsigned long data) |
201 | { | 187 | { |
@@ -218,6 +204,7 @@ int input_accept_process(struct input_handle *handle, struct file *file) | |||
218 | 204 | ||
219 | return 0; | 205 | return 0; |
220 | } | 206 | } |
207 | EXPORT_SYMBOL(input_accept_process); | ||
221 | 208 | ||
222 | int input_grab_device(struct input_handle *handle) | 209 | int input_grab_device(struct input_handle *handle) |
223 | { | 210 | { |
@@ -227,12 +214,14 @@ int input_grab_device(struct input_handle *handle) | |||
227 | handle->dev->grab = handle; | 214 | handle->dev->grab = handle; |
228 | return 0; | 215 | return 0; |
229 | } | 216 | } |
217 | EXPORT_SYMBOL(input_grab_device); | ||
230 | 218 | ||
231 | void input_release_device(struct input_handle *handle) | 219 | void input_release_device(struct input_handle *handle) |
232 | { | 220 | { |
233 | if (handle->dev->grab == handle) | 221 | if (handle->dev->grab == handle) |
234 | handle->dev->grab = NULL; | 222 | handle->dev->grab = NULL; |
235 | } | 223 | } |
224 | EXPORT_SYMBOL(input_release_device); | ||
236 | 225 | ||
237 | int input_open_device(struct input_handle *handle) | 226 | int input_open_device(struct input_handle *handle) |
238 | { | 227 | { |
@@ -255,6 +244,7 @@ int input_open_device(struct input_handle *handle) | |||
255 | 244 | ||
256 | return err; | 245 | return err; |
257 | } | 246 | } |
247 | EXPORT_SYMBOL(input_open_device); | ||
258 | 248 | ||
259 | int input_flush_device(struct input_handle* handle, struct file* file) | 249 | int input_flush_device(struct input_handle* handle, struct file* file) |
260 | { | 250 | { |
@@ -263,6 +253,7 @@ int input_flush_device(struct input_handle* handle, struct file* file) | |||
263 | 253 | ||
264 | return 0; | 254 | return 0; |
265 | } | 255 | } |
256 | EXPORT_SYMBOL(input_flush_device); | ||
266 | 257 | ||
267 | void input_close_device(struct input_handle *handle) | 258 | void input_close_device(struct input_handle *handle) |
268 | { | 259 | { |
@@ -278,6 +269,7 @@ void input_close_device(struct input_handle *handle) | |||
278 | 269 | ||
279 | mutex_unlock(&dev->mutex); | 270 | mutex_unlock(&dev->mutex); |
280 | } | 271 | } |
272 | EXPORT_SYMBOL(input_close_device); | ||
281 | 273 | ||
282 | static void input_link_handle(struct input_handle *handle) | 274 | static void input_link_handle(struct input_handle *handle) |
283 | { | 275 | { |
@@ -874,6 +866,7 @@ struct class input_class = { | |||
874 | .release = input_dev_release, | 866 | .release = input_dev_release, |
875 | .uevent = input_dev_uevent, | 867 | .uevent = input_dev_uevent, |
876 | }; | 868 | }; |
869 | EXPORT_SYMBOL_GPL(input_class); | ||
877 | 870 | ||
878 | struct input_dev *input_allocate_device(void) | 871 | struct input_dev *input_allocate_device(void) |
879 | { | 872 | { |
@@ -891,6 +884,7 @@ struct input_dev *input_allocate_device(void) | |||
891 | 884 | ||
892 | return dev; | 885 | return dev; |
893 | } | 886 | } |
887 | EXPORT_SYMBOL(input_allocate_device); | ||
894 | 888 | ||
895 | void input_free_device(struct input_dev *dev) | 889 | void input_free_device(struct input_dev *dev) |
896 | { | 890 | { |
@@ -903,6 +897,7 @@ void input_free_device(struct input_dev *dev) | |||
903 | input_put_device(dev); | 897 | input_put_device(dev); |
904 | } | 898 | } |
905 | } | 899 | } |
900 | EXPORT_SYMBOL(input_free_device); | ||
906 | 901 | ||
907 | int input_register_device(struct input_dev *dev) | 902 | int input_register_device(struct input_dev *dev) |
908 | { | 903 | { |
@@ -980,6 +975,7 @@ int input_register_device(struct input_dev *dev) | |||
980 | fail1: class_device_del(&dev->cdev); | 975 | fail1: class_device_del(&dev->cdev); |
981 | return error; | 976 | return error; |
982 | } | 977 | } |
978 | EXPORT_SYMBOL(input_register_device); | ||
983 | 979 | ||
984 | void input_unregister_device(struct input_dev *dev) | 980 | void input_unregister_device(struct input_dev *dev) |
985 | { | 981 | { |
@@ -1010,6 +1006,7 @@ void input_unregister_device(struct input_dev *dev) | |||
1010 | 1006 | ||
1011 | input_wakeup_procfs_readers(); | 1007 | input_wakeup_procfs_readers(); |
1012 | } | 1008 | } |
1009 | EXPORT_SYMBOL(input_unregister_device); | ||
1013 | 1010 | ||
1014 | void input_register_handler(struct input_handler *handler) | 1011 | void input_register_handler(struct input_handler *handler) |
1015 | { | 1012 | { |
@@ -1035,6 +1032,7 @@ void input_register_handler(struct input_handler *handler) | |||
1035 | 1032 | ||
1036 | input_wakeup_procfs_readers(); | 1033 | input_wakeup_procfs_readers(); |
1037 | } | 1034 | } |
1035 | EXPORT_SYMBOL(input_register_handler); | ||
1038 | 1036 | ||
1039 | void input_unregister_handler(struct input_handler *handler) | 1037 | void input_unregister_handler(struct input_handler *handler) |
1040 | { | 1038 | { |
@@ -1054,6 +1052,7 @@ void input_unregister_handler(struct input_handler *handler) | |||
1054 | 1052 | ||
1055 | input_wakeup_procfs_readers(); | 1053 | input_wakeup_procfs_readers(); |
1056 | } | 1054 | } |
1055 | EXPORT_SYMBOL(input_unregister_handler); | ||
1057 | 1056 | ||
1058 | static int input_open_file(struct inode *inode, struct file *file) | 1057 | static int input_open_file(struct inode *inode, struct file *file) |
1059 | { | 1058 | { |