Input: mousedev - mark mousedev interfaces as non-seekable
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 8 Oct 2012 16:07:24 +0000 (09:07 -0700)
committerDmitry 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

index 2baf32d7284592f3e9831e35cd9eb8408844fdbb..88b962aeef13a2931f397e3d67d7c319eb94b13c 100644 (file)
@@ -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: