summaryrefslogtreecommitdiffstats
path: root/drivers/input/evdev.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2010-02-04 09:30:42 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-02-04 09:31:44 +0100
commit3d7bbd4575cfb23e6ef7368fff1f7d7e198b7930 (patch)
treeacfffe2afc69e59d97c454c5b1429fd980e05b55 /drivers/input/evdev.c
parentInput: uinput - mark as non-seekable (diff)
downloadlinux-3d7bbd4575cfb23e6ef7368fff1f7d7e198b7930.tar.xz
linux-3d7bbd4575cfb23e6ef7368fff1f7d7e198b7930.zip
Input: mark input interfaces as non-seekable
Seeking does not make sense for input interfaces such as evdev and joydev so let's use nonseekable_open to mark them non-seekable. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/evdev.c')
-rw-r--r--drivers/input/evdev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c
index 258c639571b5..9f9816baeb97 100644
--- a/drivers/input/evdev.c
+++ b/drivers/input/evdev.c
@@ -278,6 +278,8 @@ static int evdev_open(struct inode *inode, struct file *file)
goto err_free_client;
file->private_data = client;
+ nonseekable_open(inode, file);
+
return 0;
err_free_client: