diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-07-03 03:02:56 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-11-27 16:20:06 -0500 |
commit | c23e0cb81e4021b9712b1093d54713991fd9b7c2 (patch) | |
tree | b0a5521d0eeddf6bdd629d6be72a3c0949572e56 /drivers/media/pci/cx18 | |
parent | 076ccb76e1a6cf0aa5371132efdd502a11e806f1 (diff) |
media: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/media/pci/cx18')
-rw-r--r-- | drivers/media/pci/cx18/cx18-fileops.c | 6 | ||||
-rw-r--r-- | drivers/media/pci/cx18/cx18-fileops.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/pci/cx18/cx18-fileops.c b/drivers/media/pci/cx18/cx18-fileops.c index 55130d5abffd..2b0abd5bbf64 100644 --- a/drivers/media/pci/cx18/cx18-fileops.c +++ b/drivers/media/pci/cx18/cx18-fileops.c | |||
@@ -602,14 +602,14 @@ ssize_t cx18_v4l2_read(struct file *filp, char __user *buf, size_t count, | |||
602 | return cx18_read_pos(s, buf, count, pos, filp->f_flags & O_NONBLOCK); | 602 | return cx18_read_pos(s, buf, count, pos, filp->f_flags & O_NONBLOCK); |
603 | } | 603 | } |
604 | 604 | ||
605 | unsigned int cx18_v4l2_enc_poll(struct file *filp, poll_table *wait) | 605 | __poll_t cx18_v4l2_enc_poll(struct file *filp, poll_table *wait) |
606 | { | 606 | { |
607 | __poll_t req_events = poll_requested_events(wait); | 607 | __poll_t req_events = poll_requested_events(wait); |
608 | struct cx18_open_id *id = file2id(filp); | 608 | struct cx18_open_id *id = file2id(filp); |
609 | struct cx18 *cx = id->cx; | 609 | struct cx18 *cx = id->cx; |
610 | struct cx18_stream *s = &cx->streams[id->type]; | 610 | struct cx18_stream *s = &cx->streams[id->type]; |
611 | int eof = test_bit(CX18_F_S_STREAMOFF, &s->s_flags); | 611 | int eof = test_bit(CX18_F_S_STREAMOFF, &s->s_flags); |
612 | unsigned res = 0; | 612 | __poll_t res = 0; |
613 | 613 | ||
614 | /* Start a capture if there is none */ | 614 | /* Start a capture if there is none */ |
615 | if (!eof && !test_bit(CX18_F_S_STREAMING, &s->s_flags) && | 615 | if (!eof && !test_bit(CX18_F_S_STREAMING, &s->s_flags) && |
@@ -629,7 +629,7 @@ unsigned int cx18_v4l2_enc_poll(struct file *filp, poll_table *wait) | |||
629 | 629 | ||
630 | if ((s->vb_type == V4L2_BUF_TYPE_VIDEO_CAPTURE) && | 630 | if ((s->vb_type == V4L2_BUF_TYPE_VIDEO_CAPTURE) && |
631 | (id->type == CX18_ENC_STREAM_TYPE_YUV)) { | 631 | (id->type == CX18_ENC_STREAM_TYPE_YUV)) { |
632 | int videobuf_poll = videobuf_poll_stream(filp, &s->vbuf_q, wait); | 632 | __poll_t videobuf_poll = videobuf_poll_stream(filp, &s->vbuf_q, wait); |
633 | 633 | ||
634 | if (v4l2_event_pending(&id->fh)) | 634 | if (v4l2_event_pending(&id->fh)) |
635 | res |= POLLPRI; | 635 | res |= POLLPRI; |
diff --git a/drivers/media/pci/cx18/cx18-fileops.h b/drivers/media/pci/cx18/cx18-fileops.h index 37ef34e866cb..5b44d30efd8f 100644 --- a/drivers/media/pci/cx18/cx18-fileops.h +++ b/drivers/media/pci/cx18/cx18-fileops.h | |||
@@ -23,7 +23,7 @@ ssize_t cx18_v4l2_read(struct file *filp, char __user *buf, size_t count, | |||
23 | ssize_t cx18_v4l2_write(struct file *filp, const char __user *buf, size_t count, | 23 | ssize_t cx18_v4l2_write(struct file *filp, const char __user *buf, size_t count, |
24 | loff_t *pos); | 24 | loff_t *pos); |
25 | int cx18_v4l2_close(struct file *filp); | 25 | int cx18_v4l2_close(struct file *filp); |
26 | unsigned int cx18_v4l2_enc_poll(struct file *filp, poll_table *wait); | 26 | __poll_t cx18_v4l2_enc_poll(struct file *filp, poll_table *wait); |
27 | int cx18_start_capture(struct cx18_open_id *id); | 27 | int cx18_start_capture(struct cx18_open_id *id); |
28 | void cx18_stop_capture(struct cx18_open_id *id, int gop_end); | 28 | void cx18_stop_capture(struct cx18_open_id *id, int gop_end); |
29 | void cx18_mute(struct cx18 *cx); | 29 | void cx18_mute(struct cx18 *cx); |