projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3376b8b
)
Input: mousedev - mark mousedev interfaces as non-seekable
author
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Mon, 8 Oct 2012 16:07:24 +0000
(09:07 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Mon, 8 Oct 2012 16:37:50 +0000
(09:37 -0700)
Seeking does not make sense for mousedev, so let's use nonseekable_open()
to mark its devices as non-seekable.
Reviewed-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mousedev.c
patch
|
blob
|
history
diff --git
a/drivers/input/mousedev.c
b/drivers/input/mousedev.c
index 2baf32d7284592f3e9831e35cd9eb8408844fdbb..88b962aeef13a2931f397e3d67d7c319eb94b13c 100644
(file)
--- a/
drivers/input/mousedev.c
+++ b/
drivers/input/mousedev.c
@@
-576,6
+576,7
@@
static int mousedev_open(struct inode *inode, struct file *file)
goto err_free_client;
file->private_data = client;
+ nonseekable_open(inode, file);
return 0;
err_free_client: