Input: mark input interfaces as non-seekable
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 4 Feb 2010 08:30:42 +0000 (00:30 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 4 Feb 2010 08:31:44 +0000 (00:31 -0800)
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>
drivers/input/evdev.c
drivers/input/joydev.c

index 258c639571b5058bc9fece65f2de501cc0a25d75..9f9816baeb97bed74092781e35373ecae1a996ab 100644 (file)
@@ -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:
index 63e71f2a7acc5f7e92fce7f70a8507ec6cf99346..c52bec4d0530f632667031e023e980e78dc4fcaf 100644 (file)
@@ -286,6 +286,8 @@ static int joydev_open(struct inode *inode, struct file *file)
                goto err_free_client;
 
        file->private_data = client;
+       nonseekable_open(inode, file);
+
        return 0;
 
  err_free_client: