aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/ivtv
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-07-03 03:02:56 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-11-27 16:20:06 -0500
commitc23e0cb81e4021b9712b1093d54713991fd9b7c2 (patch)
treeb0a5521d0eeddf6bdd629d6be72a3c0949572e56 /drivers/media/pci/ivtv
parent076ccb76e1a6cf0aa5371132efdd502a11e806f1 (diff)
media: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/media/pci/ivtv')
-rw-r--r--drivers/media/pci/ivtv/ivtv-fileops.c8
-rw-r--r--drivers/media/pci/ivtv/ivtv-fileops.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/pci/ivtv/ivtv-fileops.c b/drivers/media/pci/ivtv/ivtv-fileops.c
index 22217ef30bd6..4aa773507201 100644
--- a/drivers/media/pci/ivtv/ivtv-fileops.c
+++ b/drivers/media/pci/ivtv/ivtv-fileops.c
@@ -730,12 +730,12 @@ ssize_t ivtv_v4l2_write(struct file *filp, const char __user *user_buf, size_t c
730 return res; 730 return res;
731} 731}
732 732
733unsigned int ivtv_v4l2_dec_poll(struct file *filp, poll_table *wait) 733__poll_t ivtv_v4l2_dec_poll(struct file *filp, poll_table *wait)
734{ 734{
735 struct ivtv_open_id *id = fh2id(filp->private_data); 735 struct ivtv_open_id *id = fh2id(filp->private_data);
736 struct ivtv *itv = id->itv; 736 struct ivtv *itv = id->itv;
737 struct ivtv_stream *s = &itv->streams[id->type]; 737 struct ivtv_stream *s = &itv->streams[id->type];
738 int res = 0; 738 __poll_t res = 0;
739 739
740 /* add stream's waitq to the poll list */ 740 /* add stream's waitq to the poll list */
741 IVTV_DEBUG_HI_FILE("Decoder poll\n"); 741 IVTV_DEBUG_HI_FILE("Decoder poll\n");
@@ -764,14 +764,14 @@ unsigned int ivtv_v4l2_dec_poll(struct file *filp, poll_table *wait)
764 return res; 764 return res;
765} 765}
766 766
767unsigned int ivtv_v4l2_enc_poll(struct file *filp, poll_table *wait) 767__poll_t ivtv_v4l2_enc_poll(struct file *filp, poll_table *wait)
768{ 768{
769 __poll_t req_events = poll_requested_events(wait); 769 __poll_t req_events = poll_requested_events(wait);
770 struct ivtv_open_id *id = fh2id(filp->private_data); 770 struct ivtv_open_id *id = fh2id(filp->private_data);
771 struct ivtv *itv = id->itv; 771 struct ivtv *itv = id->itv;
772 struct ivtv_stream *s = &itv->streams[id->type]; 772 struct ivtv_stream *s = &itv->streams[id->type];
773 int eof = test_bit(IVTV_F_S_STREAMOFF, &s->s_flags); 773 int eof = test_bit(IVTV_F_S_STREAMOFF, &s->s_flags);
774 unsigned res = 0; 774 __poll_t res = 0;
775 775
776 /* Start a capture if there is none */ 776 /* Start a capture if there is none */
777 if (!eof && !test_bit(IVTV_F_S_STREAMING, &s->s_flags) && 777 if (!eof && !test_bit(IVTV_F_S_STREAMING, &s->s_flags) &&
diff --git a/drivers/media/pci/ivtv/ivtv-fileops.h b/drivers/media/pci/ivtv/ivtv-fileops.h
index 5e08800772ca..e0029b2b8d09 100644
--- a/drivers/media/pci/ivtv/ivtv-fileops.h
+++ b/drivers/media/pci/ivtv/ivtv-fileops.h
@@ -28,8 +28,8 @@ ssize_t ivtv_v4l2_read(struct file *filp, char __user *buf, size_t count,
28ssize_t ivtv_v4l2_write(struct file *filp, const char __user *buf, size_t count, 28ssize_t ivtv_v4l2_write(struct file *filp, const char __user *buf, size_t count,
29 loff_t * pos); 29 loff_t * pos);
30int ivtv_v4l2_close(struct file *filp); 30int ivtv_v4l2_close(struct file *filp);
31unsigned int ivtv_v4l2_enc_poll(struct file *filp, poll_table * wait); 31__poll_t ivtv_v4l2_enc_poll(struct file *filp, poll_table * wait);
32unsigned int ivtv_v4l2_dec_poll(struct file *filp, poll_table * wait); 32__poll_t ivtv_v4l2_dec_poll(struct file *filp, poll_table * wait);
33int ivtv_start_capture(struct ivtv_open_id *id); 33int ivtv_start_capture(struct ivtv_open_id *id);
34void ivtv_stop_capture(struct ivtv_open_id *id, int gop_end); 34void ivtv_stop_capture(struct ivtv_open_id *id, int gop_end);
35int ivtv_start_decoding(struct ivtv_open_id *id, int speed); 35int ivtv_start_decoding(struct ivtv_open_id *id, int speed);