aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/input.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor_core@ameritech.net>2006-06-26 01:49:21 -0400
committerDmitry Torokhov <dtor_core@ameritech.net>2006-06-26 01:49:21 -0400
commitca56fe07f46e1c174b544e714be183f1476fecea (patch)
tree98542f30bfac7802c3014439208f246807651d9c /drivers/input/input.c
parent1e0afb288e56d469ca1c583342bb9782d49333c6 (diff)
Input: rearrange exports
New style is to mark symbol as exported right after its definition. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/input.c')
-rw-r--r--drivers/input/input.c29
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>");
28MODULE_DESCRIPTION("Input core"); 28MODULE_DESCRIPTION("Input core");
29MODULE_LICENSE("GPL"); 29MODULE_LICENSE("GPL");
30 30
31EXPORT_SYMBOL(input_allocate_device);
32EXPORT_SYMBOL(input_free_device);
33EXPORT_SYMBOL(input_register_device);
34EXPORT_SYMBOL(input_unregister_device);
35EXPORT_SYMBOL(input_register_handler);
36EXPORT_SYMBOL(input_unregister_handler);
37EXPORT_SYMBOL(input_grab_device);
38EXPORT_SYMBOL(input_release_device);
39EXPORT_SYMBOL(input_open_device);
40EXPORT_SYMBOL(input_close_device);
41EXPORT_SYMBOL(input_accept_process);
42EXPORT_SYMBOL(input_flush_device);
43EXPORT_SYMBOL(input_event);
44EXPORT_SYMBOL_GPL(input_class);
45
46#define INPUT_DEVICES 256 31#define INPUT_DEVICES 256
47 32
48static LIST_HEAD(input_dev_list); 33static 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}
184EXPORT_SYMBOL(input_event);
199 185
200static void input_repeat_key(unsigned long data) 186static 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}
207EXPORT_SYMBOL(input_accept_process);
221 208
222int input_grab_device(struct input_handle *handle) 209int 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}
217EXPORT_SYMBOL(input_grab_device);
230 218
231void input_release_device(struct input_handle *handle) 219void 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}
224EXPORT_SYMBOL(input_release_device);
236 225
237int input_open_device(struct input_handle *handle) 226int 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}
247EXPORT_SYMBOL(input_open_device);
258 248
259int input_flush_device(struct input_handle* handle, struct file* file) 249int 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}
256EXPORT_SYMBOL(input_flush_device);
266 257
267void input_close_device(struct input_handle *handle) 258void 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}
272EXPORT_SYMBOL(input_close_device);
281 273
282static void input_link_handle(struct input_handle *handle) 274static 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};
869EXPORT_SYMBOL_GPL(input_class);
877 870
878struct input_dev *input_allocate_device(void) 871struct 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}
887EXPORT_SYMBOL(input_allocate_device);
894 888
895void input_free_device(struct input_dev *dev) 889void 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}
900EXPORT_SYMBOL(input_free_device);
906 901
907int input_register_device(struct input_dev *dev) 902int 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}
978EXPORT_SYMBOL(input_register_device);
983 979
984void input_unregister_device(struct input_dev *dev) 980void 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}
1009EXPORT_SYMBOL(input_unregister_device);
1013 1010
1014void input_register_handler(struct input_handler *handler) 1011void 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}
1035EXPORT_SYMBOL(input_register_handler);
1038 1036
1039void input_unregister_handler(struct input_handler *handler) 1037void 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}
1055EXPORT_SYMBOL(input_unregister_handler);
1057 1056
1058static int input_open_file(struct inode *inode, struct file *file) 1057static int input_open_file(struct inode *inode, struct file *file)
1059{ 1058{