Skip to content

Commit

Permalink
Input: mark input interfaces as non-seekable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Torokhov committed Feb 4, 2010
1 parent daf8a96 commit 3d7bbd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/input/evdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions drivers/input/joydev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3d7bbd4

Please sign in to comment.