diff options
Diffstat (limited to 'drivers/media/video/cx88/cx88-blackbird.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-blackbird.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c index bfdca5847764..9a1374a38ec7 100644 --- a/drivers/media/video/cx88/cx88-blackbird.c +++ b/drivers/media/video/cx88/cx88-blackbird.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <linux/device.h> | 33 | #include <linux/device.h> |
34 | #include <linux/firmware.h> | 34 | #include <linux/firmware.h> |
35 | #include <media/v4l2-common.h> | 35 | #include <media/v4l2-common.h> |
36 | #include <media/v4l2-ioctl.h> | ||
36 | #include <media/cx2341x.h> | 37 | #include <media/cx2341x.h> |
37 | 38 | ||
38 | #include "cx88.h" | 39 | #include "cx88.h" |
@@ -1174,12 +1175,7 @@ static const struct file_operations mpeg_fops = | |||
1174 | .llseek = no_llseek, | 1175 | .llseek = no_llseek, |
1175 | }; | 1176 | }; |
1176 | 1177 | ||
1177 | static struct video_device cx8802_mpeg_template = | 1178 | static const struct v4l2_ioctl_ops mpeg_ioctl_ops = { |
1178 | { | ||
1179 | .name = "cx8802", | ||
1180 | .type = VID_TYPE_CAPTURE|VID_TYPE_TUNER|VID_TYPE_SCALES|VID_TYPE_MPEG_ENCODER, | ||
1181 | .fops = &mpeg_fops, | ||
1182 | .minor = -1, | ||
1183 | .vidioc_querymenu = vidioc_querymenu, | 1179 | .vidioc_querymenu = vidioc_querymenu, |
1184 | .vidioc_querycap = vidioc_querycap, | 1180 | .vidioc_querycap = vidioc_querycap, |
1185 | .vidioc_enum_fmt_vid_cap = vidioc_enum_fmt_vid_cap, | 1181 | .vidioc_enum_fmt_vid_cap = vidioc_enum_fmt_vid_cap, |
@@ -1207,6 +1203,13 @@ static struct video_device cx8802_mpeg_template = | |||
1207 | .vidioc_g_tuner = vidioc_g_tuner, | 1203 | .vidioc_g_tuner = vidioc_g_tuner, |
1208 | .vidioc_s_tuner = vidioc_s_tuner, | 1204 | .vidioc_s_tuner = vidioc_s_tuner, |
1209 | .vidioc_s_std = vidioc_s_std, | 1205 | .vidioc_s_std = vidioc_s_std, |
1206 | }; | ||
1207 | |||
1208 | static struct video_device cx8802_mpeg_template = { | ||
1209 | .name = "cx8802", | ||
1210 | .fops = &mpeg_fops, | ||
1211 | .ioctl_ops = &mpeg_ioctl_ops, | ||
1212 | .minor = -1, | ||
1210 | .tvnorms = CX88_NORMS, | 1213 | .tvnorms = CX88_NORMS, |
1211 | .current_norm = V4L2_STD_NTSC_M, | 1214 | .current_norm = V4L2_STD_NTSC_M, |
1212 | }; | 1215 | }; |