diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-01 03:06:22 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:14:59 -0400 |
commit | e078770a050aa686f895a965f54222c0f201feb3 (patch) | |
tree | 0e5bdf8fdb81ef9948b0895e0284f416fc390f4e /drivers/media/video/gspca/gspca.c | |
parent | 50a871fed9c82f01baa40100cd2d262784220953 (diff) |
V4L/DVB (8161): gspca: Fix compilation
Some callbacks were renamed. Fix it.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/gspca/gspca.c')
-rw-r--r-- | drivers/media/video/gspca/gspca.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index 07d765a7de6f..c84e0b352f46 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c | |||
@@ -739,7 +739,7 @@ static int gspca_get_mode(struct gspca_dev *gspca_dev, | |||
739 | return -EINVAL; | 739 | return -EINVAL; |
740 | } | 740 | } |
741 | 741 | ||
742 | static int vidioc_enum_fmt_cap(struct file *file, void *priv, | 742 | static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv, |
743 | struct v4l2_fmtdesc *fmtdesc) | 743 | struct v4l2_fmtdesc *fmtdesc) |
744 | { | 744 | { |
745 | struct gspca_dev *gspca_dev = priv; | 745 | struct gspca_dev *gspca_dev = priv; |
@@ -782,7 +782,7 @@ static int vidioc_enum_fmt_cap(struct file *file, void *priv, | |||
782 | return 0; | 782 | return 0; |
783 | } | 783 | } |
784 | 784 | ||
785 | static int vidioc_g_fmt_cap(struct file *file, void *priv, | 785 | static int vidioc_g_fmt_vid_cap(struct file *file, void *priv, |
786 | struct v4l2_format *fmt) | 786 | struct v4l2_format *fmt) |
787 | { | 787 | { |
788 | struct gspca_dev *gspca_dev = priv; | 788 | struct gspca_dev *gspca_dev = priv; |
@@ -811,7 +811,7 @@ static int vidioc_g_fmt_cap(struct file *file, void *priv, | |||
811 | return 0; | 811 | return 0; |
812 | } | 812 | } |
813 | 813 | ||
814 | static int try_fmt_cap(struct gspca_dev *gspca_dev, | 814 | static int try_fmt_vid_cap(struct gspca_dev *gspca_dev, |
815 | struct v4l2_format *fmt) | 815 | struct v4l2_format *fmt) |
816 | { | 816 | { |
817 | int w, h, mode, mode2, frsz; | 817 | int w, h, mode, mode2, frsz; |
@@ -865,20 +865,20 @@ static int try_fmt_cap(struct gspca_dev *gspca_dev, | |||
865 | return mode; /* used when s_fmt */ | 865 | return mode; /* used when s_fmt */ |
866 | } | 866 | } |
867 | 867 | ||
868 | static int vidioc_try_fmt_cap(struct file *file, | 868 | static int vidioc_try_fmt_vid_cap(struct file *file, |
869 | void *priv, | 869 | void *priv, |
870 | struct v4l2_format *fmt) | 870 | struct v4l2_format *fmt) |
871 | { | 871 | { |
872 | struct gspca_dev *gspca_dev = priv; | 872 | struct gspca_dev *gspca_dev = priv; |
873 | int ret; | 873 | int ret; |
874 | 874 | ||
875 | ret = try_fmt_cap(gspca_dev, fmt); | 875 | ret = try_fmt_vid_cap(gspca_dev, fmt); |
876 | if (ret < 0) | 876 | if (ret < 0) |
877 | return ret; | 877 | return ret; |
878 | return 0; | 878 | return 0; |
879 | } | 879 | } |
880 | 880 | ||
881 | static int vidioc_s_fmt_cap(struct file *file, void *priv, | 881 | static int vidioc_s_fmt_vid_cap(struct file *file, void *priv, |
882 | struct v4l2_format *fmt) | 882 | struct v4l2_format *fmt) |
883 | { | 883 | { |
884 | struct gspca_dev *gspca_dev = priv; | 884 | struct gspca_dev *gspca_dev = priv; |
@@ -904,7 +904,7 @@ static int vidioc_s_fmt_cap(struct file *file, void *priv, | |||
904 | if (mutex_lock_interruptible(&gspca_dev->queue_lock)) | 904 | if (mutex_lock_interruptible(&gspca_dev->queue_lock)) |
905 | return -ERESTARTSYS; | 905 | return -ERESTARTSYS; |
906 | 906 | ||
907 | ret = try_fmt_cap(gspca_dev, fmt); | 907 | ret = try_fmt_vid_cap(gspca_dev, fmt); |
908 | if (ret < 0) | 908 | if (ret < 0) |
909 | goto out; | 909 | goto out; |
910 | 910 | ||
@@ -1369,7 +1369,7 @@ static int vidiocgmbuf(struct file *file, void *priv, | |||
1369 | fmt.fmt.pix.width = gspca_dev->cam.cam_mode[i].width; | 1369 | fmt.fmt.pix.width = gspca_dev->cam.cam_mode[i].width; |
1370 | fmt.fmt.pix.height = gspca_dev->cam.cam_mode[i].height; | 1370 | fmt.fmt.pix.height = gspca_dev->cam.cam_mode[i].height; |
1371 | fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_BGR24; | 1371 | fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_BGR24; |
1372 | ret = vidioc_s_fmt_cap(file, priv, &fmt); | 1372 | ret = vidioc_s_fmt_vid_cap(file, priv, &fmt); |
1373 | if (ret != 0) | 1373 | if (ret != 0) |
1374 | return ret; | 1374 | return ret; |
1375 | } | 1375 | } |
@@ -1845,10 +1845,10 @@ static struct video_device gspca_template = { | |||
1845 | .vidioc_querycap = vidioc_querycap, | 1845 | .vidioc_querycap = vidioc_querycap, |
1846 | .vidioc_dqbuf = vidioc_dqbuf, | 1846 | .vidioc_dqbuf = vidioc_dqbuf, |
1847 | .vidioc_qbuf = vidioc_qbuf, | 1847 | .vidioc_qbuf = vidioc_qbuf, |
1848 | .vidioc_enum_fmt_cap = vidioc_enum_fmt_cap, | 1848 | .vidioc_enum_fmt_vid_cap = vidioc_enum_fmt_vid_cap, |
1849 | .vidioc_try_fmt_cap = vidioc_try_fmt_cap, | 1849 | .vidioc_try_fmt_vid_cap = vidioc_try_fmt_vid_cap, |
1850 | .vidioc_g_fmt_cap = vidioc_g_fmt_cap, | 1850 | .vidioc_g_fmt_vid_cap = vidioc_g_fmt_vid_cap, |
1851 | .vidioc_s_fmt_cap = vidioc_s_fmt_cap, | 1851 | .vidioc_s_fmt_vid_cap = vidioc_s_fmt_vid_cap, |
1852 | .vidioc_streamon = vidioc_streamon, | 1852 | .vidioc_streamon = vidioc_streamon, |
1853 | .vidioc_queryctrl = vidioc_queryctrl, | 1853 | .vidioc_queryctrl = vidioc_queryctrl, |
1854 | .vidioc_g_ctrl = vidioc_g_ctrl, | 1854 | .vidioc_g_ctrl = vidioc_g_ctrl, |