Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29998
b: refs/heads/master
c: 774dd5d
h: refs/heads/master
v: v3
  • Loading branch information
Dyks, Axel (XL) authored and Mauro Carvalho Chehab committed Jun 25, 2006
1 parent 8c81deb commit 561b0ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: be4f451975c6514a9e12451c2ae2ce91d5673b06
refs/heads/master: 774dd5d9bdcbfe2efb3425e8a0be0b4d01a65c26
6 changes: 5 additions & 1 deletion trunk/drivers/media/dvb/cinergyT2/cinergyT2.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,15 +544,19 @@ static unsigned int cinergyt2_poll (struct file *file, struct poll_table_struct
{
struct dvb_device *dvbdev = file->private_data;
struct cinergyt2 *cinergyt2 = dvbdev->priv;
unsigned int mask = 0;

if (cinergyt2->disconnect_pending || mutex_lock_interruptible(&cinergyt2->sem))
return -ERESTARTSYS;

poll_wait(file, &cinergyt2->poll_wq, wait);

if (cinergyt2->pending_fe_events != 0)
mask |= (POLLIN | POLLRDNORM | POLLPRI);

mutex_unlock(&cinergyt2->sem);

return (POLLIN | POLLRDNORM | POLLPRI);
return mask;
}


Expand Down

0 comments on commit 561b0ab

Please sign in to comment.