diff options
Diffstat (limited to 'drivers/media/video/cx88/cx88-blackbird.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-blackbird.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c index 4d1a461f329f..55c35482089e 100644 --- a/drivers/media/video/cx88/cx88-blackbird.c +++ b/drivers/media/video/cx88/cx88-blackbird.c | |||
@@ -1175,12 +1175,7 @@ static const struct file_operations mpeg_fops = | |||
1175 | .llseek = no_llseek, | 1175 | .llseek = no_llseek, |
1176 | }; | 1176 | }; |
1177 | 1177 | ||
1178 | static struct video_device cx8802_mpeg_template = | 1178 | static const struct v4l2_ioctl_ops mpeg_ioctl_ops = { |
1179 | { | ||
1180 | .name = "cx8802", | ||
1181 | .type = VID_TYPE_CAPTURE|VID_TYPE_TUNER|VID_TYPE_SCALES|VID_TYPE_MPEG_ENCODER, | ||
1182 | .fops = &mpeg_fops, | ||
1183 | .minor = -1, | ||
1184 | .vidioc_querymenu = vidioc_querymenu, | 1179 | .vidioc_querymenu = vidioc_querymenu, |
1185 | .vidioc_querycap = vidioc_querycap, | 1180 | .vidioc_querycap = vidioc_querycap, |
1186 | .vidioc_enum_fmt_vid_cap = vidioc_enum_fmt_vid_cap, | 1181 | .vidioc_enum_fmt_vid_cap = vidioc_enum_fmt_vid_cap, |
@@ -1208,6 +1203,15 @@ static struct video_device cx8802_mpeg_template = | |||
1208 | .vidioc_g_tuner = vidioc_g_tuner, | 1203 | .vidioc_g_tuner = vidioc_g_tuner, |
1209 | .vidioc_s_tuner = vidioc_s_tuner, | 1204 | .vidioc_s_tuner = vidioc_s_tuner, |
1210 | .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 | .type = VID_TYPE_CAPTURE | VID_TYPE_TUNER | | ||
1211 | VID_TYPE_SCALES | VID_TYPE_MPEG_ENCODER, | ||
1212 | .fops = &mpeg_fops, | ||
1213 | .ioctl_ops = &mpeg_ioctl_ops, | ||
1214 | .minor = -1, | ||
1211 | .tvnorms = CX88_NORMS, | 1215 | .tvnorms = CX88_NORMS, |
1212 | .current_norm = V4L2_STD_NTSC_M, | 1216 | .current_norm = V4L2_STD_NTSC_M, |
1213 | }; | 1217 | }; |