Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Side by Side Diff: drivers/input/evdev.c

Issue 6878004: BACKPORT: Input: mark input interfaces as non-seekable (Closed) Base URL: http://git.chromium.org/git/kernel.git@master
Patch Set: Rebase on 6873042 Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | drivers/input/joydev.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Event char devices, giving access to raw input device events. 2 * Event char devices, giving access to raw input device events.
3 * 3 *
4 * Copyright (c) 1999-2002 Vojtech Pavlik 4 * Copyright (c) 1999-2002 Vojtech Pavlik
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published by 7 * under the terms of the GNU General Public License version 2 as published by
8 * the Free Software Foundation. 8 * the Free Software Foundation.
9 */ 9 */
10 10
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 271
272 spin_lock_init(&client->buffer_lock); 272 spin_lock_init(&client->buffer_lock);
273 client->evdev = evdev; 273 client->evdev = evdev;
274 evdev_attach_client(evdev, client); 274 evdev_attach_client(evdev, client);
275 275
276 error = evdev_open_device(evdev); 276 error = evdev_open_device(evdev);
277 if (error) 277 if (error)
278 goto err_free_client; 278 goto err_free_client;
279 279
280 file->private_data = client; 280 file->private_data = client;
281 nonseekable_open(inode, file);
282
281 return 0; 283 return 0;
282 284
283 err_free_client: 285 err_free_client:
284 evdev_detach_client(evdev, client); 286 evdev_detach_client(evdev, client);
285 kfree(client); 287 kfree(client);
286 err_put_evdev: 288 err_put_evdev:
287 put_device(&evdev->dev); 289 put_device(&evdev->dev);
288 return error; 290 return error;
289 } 291 }
290 292
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 { 893 {
892 input_unregister_handler(&evdev_handler); 894 input_unregister_handler(&evdev_handler);
893 } 895 }
894 896
895 module_init(evdev_init); 897 module_init(evdev_init);
896 module_exit(evdev_exit); 898 module_exit(evdev_exit);
897 899
898 MODULE_AUTHOR("Vojtech Pavlik <vojtech@ucw.cz>"); 900 MODULE_AUTHOR("Vojtech Pavlik <vojtech@ucw.cz>");
899 MODULE_DESCRIPTION("Input driver event char devices"); 901 MODULE_DESCRIPTION("Input driver event char devices");
900 MODULE_LICENSE("GPL"); 902 MODULE_LICENSE("GPL");
OLDNEW
« no previous file with comments | « no previous file | drivers/input/joydev.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698