diff options
author | Steven Toth <stoth@linuxtv.org> | 2008-10-16 19:18:44 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-17 16:27:23 -0400 |
commit | 9c8ced511e154faf1a7af3f1abdfff45dccbe54a (patch) | |
tree | 6c609e6124c7999abbc6df6410545ae0ba5e9bc2 /drivers/media/video/cx23885/cx23885-video.c | |
parent | 2af03eeadf460656642c2553c783537e7ad02875 (diff) |
V4L/DVB (9251): cx23885: Checkpatch compliance
cx23885: Checkpatch compliance
Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-video.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-video.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/drivers/media/video/cx23885/cx23885-video.c b/drivers/media/video/cx23885/cx23885-video.c index f75ed1c9b71a..ab3110d6046c 100644 --- a/drivers/media/video/cx23885/cx23885-video.c +++ b/drivers/media/video/cx23885/cx23885-video.c | |||
@@ -285,11 +285,10 @@ static void cx23885_video_wakeup(struct cx23885_dev *dev, | |||
285 | list_del(&buf->vb.queue); | 285 | list_del(&buf->vb.queue); |
286 | wake_up(&buf->vb.done); | 286 | wake_up(&buf->vb.done); |
287 | } | 287 | } |
288 | if (list_empty(&q->active)) { | 288 | if (list_empty(&q->active)) |
289 | del_timer(&q->timeout); | 289 | del_timer(&q->timeout); |
290 | } else { | 290 | else |
291 | mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT); | 291 | mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT); |
292 | } | ||
293 | if (bc != 1) | 292 | if (bc != 1) |
294 | printk(KERN_ERR "%s: %d buffers handled (should be 1)\n", | 293 | printk(KERN_ERR "%s: %d buffers handled (should be 1)\n", |
295 | __func__, bc); | 294 | __func__, bc); |
@@ -379,12 +378,12 @@ static int res_get(struct cx23885_dev *dev, struct cx23885_fh *fh, | |||
379 | 378 | ||
380 | static int res_check(struct cx23885_fh *fh, unsigned int bit) | 379 | static int res_check(struct cx23885_fh *fh, unsigned int bit) |
381 | { | 380 | { |
382 | return (fh->resources & bit); | 381 | return fh->resources & bit; |
383 | } | 382 | } |
384 | 383 | ||
385 | static int res_locked(struct cx23885_dev *dev, unsigned int bit) | 384 | static int res_locked(struct cx23885_dev *dev, unsigned int bit) |
386 | { | 385 | { |
387 | return (dev->resources & bit); | 386 | return dev->resources & bit; |
388 | } | 387 | } |
389 | 388 | ||
390 | static void res_free(struct cx23885_dev *dev, struct cx23885_fh *fh, | 389 | static void res_free(struct cx23885_dev *dev, struct cx23885_fh *fh, |
@@ -887,14 +886,16 @@ static int video_mmap(struct file *file, struct vm_area_struct *vma) | |||
887 | /* ------------------------------------------------------------------ */ | 886 | /* ------------------------------------------------------------------ */ |
888 | /* VIDEO CTRL IOCTLS */ | 887 | /* VIDEO CTRL IOCTLS */ |
889 | 888 | ||
890 | static int cx23885_get_control(struct cx23885_dev *dev, struct v4l2_control *ctl) | 889 | static int cx23885_get_control(struct cx23885_dev *dev, |
890 | struct v4l2_control *ctl) | ||
891 | { | 891 | { |
892 | dprintk(1, "%s() calling cx25840(VIDIOC_G_CTRL)\n", __func__); | 892 | dprintk(1, "%s() calling cx25840(VIDIOC_G_CTRL)\n", __func__); |
893 | cx23885_call_i2c_clients(&dev->i2c_bus[2], VIDIOC_G_CTRL, ctl); | 893 | cx23885_call_i2c_clients(&dev->i2c_bus[2], VIDIOC_G_CTRL, ctl); |
894 | return 0; | 894 | return 0; |
895 | } | 895 | } |
896 | 896 | ||
897 | static int cx23885_set_control(struct cx23885_dev *dev, struct v4l2_control *ctl) | 897 | static int cx23885_set_control(struct cx23885_dev *dev, |
898 | struct v4l2_control *ctl) | ||
898 | { | 899 | { |
899 | dprintk(1, "%s() calling cx25840(VIDIOC_S_CTRL)" | 900 | dprintk(1, "%s() calling cx25840(VIDIOC_S_CTRL)" |
900 | " (disabled - no action)\n", __func__); | 901 | " (disabled - no action)\n", __func__); |
@@ -1073,29 +1074,29 @@ static int vidioc_reqbufs(struct file *file, void *priv, | |||
1073 | struct v4l2_requestbuffers *p) | 1074 | struct v4l2_requestbuffers *p) |
1074 | { | 1075 | { |
1075 | struct cx23885_fh *fh = priv; | 1076 | struct cx23885_fh *fh = priv; |
1076 | return (videobuf_reqbufs(get_queue(fh), p)); | 1077 | return videobuf_reqbufs(get_queue(fh), p); |
1077 | } | 1078 | } |
1078 | 1079 | ||
1079 | static int vidioc_querybuf(struct file *file, void *priv, | 1080 | static int vidioc_querybuf(struct file *file, void *priv, |
1080 | struct v4l2_buffer *p) | 1081 | struct v4l2_buffer *p) |
1081 | { | 1082 | { |
1082 | struct cx23885_fh *fh = priv; | 1083 | struct cx23885_fh *fh = priv; |
1083 | return (videobuf_querybuf(get_queue(fh), p)); | 1084 | return videobuf_querybuf(get_queue(fh), p); |
1084 | } | 1085 | } |
1085 | 1086 | ||
1086 | static int vidioc_qbuf(struct file *file, void *priv, | 1087 | static int vidioc_qbuf(struct file *file, void *priv, |
1087 | struct v4l2_buffer *p) | 1088 | struct v4l2_buffer *p) |
1088 | { | 1089 | { |
1089 | struct cx23885_fh *fh = priv; | 1090 | struct cx23885_fh *fh = priv; |
1090 | return (videobuf_qbuf(get_queue(fh), p)); | 1091 | return videobuf_qbuf(get_queue(fh), p); |
1091 | } | 1092 | } |
1092 | 1093 | ||
1093 | static int vidioc_dqbuf(struct file *file, void *priv, | 1094 | static int vidioc_dqbuf(struct file *file, void *priv, |
1094 | struct v4l2_buffer *p) | 1095 | struct v4l2_buffer *p) |
1095 | { | 1096 | { |
1096 | struct cx23885_fh *fh = priv; | 1097 | struct cx23885_fh *fh = priv; |
1097 | return (videobuf_dqbuf(get_queue(fh), p, | 1098 | return videobuf_dqbuf(get_queue(fh), p, |
1098 | file->f_flags & O_NONBLOCK)); | 1099 | file->f_flags & O_NONBLOCK); |
1099 | } | 1100 | } |
1100 | 1101 | ||
1101 | static int vidioc_streamon(struct file *file, void *priv, | 1102 | static int vidioc_streamon(struct file *file, void *priv, |