aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885/cx23885-417.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-417.c')
-rw-r--r--drivers/media/video/cx23885/cx23885-417.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/drivers/media/video/cx23885/cx23885-417.c b/drivers/media/video/cx23885/cx23885-417.c
index 4d0dcb06c19d..9d15d8a353fa 100644
--- a/drivers/media/video/cx23885/cx23885-417.c
+++ b/drivers/media/video/cx23885/cx23885-417.c
@@ -1700,14 +1700,7 @@ static struct file_operations mpeg_fops = {
1700 .llseek = no_llseek, 1700 .llseek = no_llseek,
1701}; 1701};
1702 1702
1703static struct video_device cx23885_mpeg_template = { 1703static const struct v4l2_ioctl_ops mpeg_ioctl_ops = {
1704 .name = "cx23885",
1705 .type = VID_TYPE_CAPTURE |
1706 VID_TYPE_TUNER |
1707 VID_TYPE_SCALES |
1708 VID_TYPE_MPEG_ENCODER,
1709 .fops = &mpeg_fops,
1710 .minor = -1,
1711 .vidioc_s_std = vidioc_s_std, 1704 .vidioc_s_std = vidioc_s_std,
1712 .vidioc_enum_input = vidioc_enum_input, 1705 .vidioc_enum_input = vidioc_enum_input,
1713 .vidioc_g_input = vidioc_g_input, 1706 .vidioc_g_input = vidioc_g_input,
@@ -1736,6 +1729,17 @@ static struct video_device cx23885_mpeg_template = {
1736 .vidioc_queryctrl = vidioc_queryctrl, 1729 .vidioc_queryctrl = vidioc_queryctrl,
1737}; 1730};
1738 1731
1732static struct video_device cx23885_mpeg_template = {
1733 .name = "cx23885",
1734 .type = VID_TYPE_CAPTURE |
1735 VID_TYPE_TUNER |
1736 VID_TYPE_SCALES |
1737 VID_TYPE_MPEG_ENCODER,
1738 .fops = &mpeg_fops,
1739 .ioctl_ops = &mpeg_ioctl_ops,
1740 .minor = -1,
1741};
1742
1739void cx23885_417_unregister(struct cx23885_dev *dev) 1743void cx23885_417_unregister(struct cx23885_dev *dev)
1740{ 1744{
1741 dprintk(1, "%s()\n", __func__); 1745 dprintk(1, "%s()\n", __func__);