Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202217
b: refs/heads/master
c: 4d4bf99
h: refs/heads/master
i:
  202215: b128683
v: v3
  • Loading branch information
Julien Moutinho authored and Dmitry Torokhov committed Jul 16, 2010
1 parent cae6c3f commit ac49328
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 20da92de8ec3c1d4ba7e5aca322d38b6ce634932
refs/heads/master: 4d4bf995ea873cc213c5abc5402af46ef490b8fd
9 changes: 7 additions & 2 deletions trunk/drivers/input/mousedev.c
Original file line number Diff line number Diff line change
Expand Up @@ -765,10 +765,15 @@ static unsigned int mousedev_poll(struct file *file, poll_table *wait)
{
struct mousedev_client *client = file->private_data;
struct mousedev *mousedev = client->mousedev;
unsigned int mask;

poll_wait(file, &mousedev->wait, wait);
return ((client->ready || client->buffer) ? (POLLIN | POLLRDNORM) : 0) |
(mousedev->exist ? 0 : (POLLHUP | POLLERR));

mask = mousedev->exist ? POLLOUT | POLLWRNORM : POLLHUP | POLLERR;
if (client->ready || client->buffer)
mask |= POLLIN | POLLRDNORM;

return mask;
}

static const struct file_operations mousedev_fops = {
Expand Down

0 comments on commit ac49328

Please sign in to comment.