diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-06-17 21:16:55 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-06-17 21:16:55 -0400 |
commit | 4b337c5f245b6587ba844ac7bb13c313a2912f7b (patch) | |
tree | 999c6a6580b76a083c8efb9dabff709d1c49fcd0 /drivers/media/video/pvrusb2/pvrusb2-v4l2.c | |
parent | 492b057c426e4aa747484958e18e9da29003985d (diff) | |
parent | 3fe0344faf7fdcb158bd5c1a9aec960a8d70c8e8 (diff) |
Merge commit 'origin/master' into next
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-v4l2.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-v4l2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c index 9e0f2b07b93b..2d8825e5b1be 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c +++ b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c | |||
@@ -90,7 +90,7 @@ static struct v4l2_capability pvr_capability ={ | |||
90 | .driver = "pvrusb2", | 90 | .driver = "pvrusb2", |
91 | .card = "Hauppauge WinTV pvr-usb2", | 91 | .card = "Hauppauge WinTV pvr-usb2", |
92 | .bus_info = "usb", | 92 | .bus_info = "usb", |
93 | .version = KERNEL_VERSION(0,8,0), | 93 | .version = KERNEL_VERSION(0, 9, 0), |
94 | .capabilities = (V4L2_CAP_VIDEO_CAPTURE | | 94 | .capabilities = (V4L2_CAP_VIDEO_CAPTURE | |
95 | V4L2_CAP_TUNER | V4L2_CAP_AUDIO | V4L2_CAP_RADIO | | 95 | V4L2_CAP_TUNER | V4L2_CAP_AUDIO | V4L2_CAP_RADIO | |
96 | V4L2_CAP_READWRITE), | 96 | V4L2_CAP_READWRITE), |
@@ -267,7 +267,7 @@ static long pvr2_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
267 | memset(&tmp,0,sizeof(tmp)); | 267 | memset(&tmp,0,sizeof(tmp)); |
268 | tmp.index = vi->index; | 268 | tmp.index = vi->index; |
269 | ret = 0; | 269 | ret = 0; |
270 | if ((vi->index < 0) || (vi->index >= fh->input_cnt)) { | 270 | if (vi->index >= fh->input_cnt) { |
271 | ret = -EINVAL; | 271 | ret = -EINVAL; |
272 | break; | 272 | break; |
273 | } | 273 | } |
@@ -331,7 +331,7 @@ static long pvr2_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
331 | case VIDIOC_S_INPUT: | 331 | case VIDIOC_S_INPUT: |
332 | { | 332 | { |
333 | struct v4l2_input *vi = (struct v4l2_input *)arg; | 333 | struct v4l2_input *vi = (struct v4l2_input *)arg; |
334 | if ((vi->index < 0) || (vi->index >= fh->input_cnt)) { | 334 | if (vi->index >= fh->input_cnt) { |
335 | ret = -ERANGE; | 335 | ret = -ERANGE; |
336 | break; | 336 | break; |
337 | } | 337 | } |