diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-10-08 18:07:24 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-10-08 18:37:50 +0200 |
commit | 0124be49770469cfb258d7df4693e70b4c5fb013 (patch) | |
tree | 21432c28dceb81846cfb8bea17a3dc7b2bc1fcb8 /drivers/input | |
parent | Input: mousedev - rename mixdev_open to opened_by_mixdev (diff) | |
download | linux-0124be49770469cfb258d7df4693e70b4c5fb013.tar.xz linux-0124be49770469cfb258d7df4693e70b4c5fb013.zip |
Input: mousedev - mark mousedev interfaces as non-seekable
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/mousedev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c index 2baf32d72845..88b962aeef13 100644 --- 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: |