aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx-video.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-05-28 11:16:41 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:07:32 -0400
commit78b526a43561d7e5e702ba27948e422dfbc4bea1 (patch)
tree67c8b7150b51f6a82275af6f5baaedff4eaf40c0 /drivers/media/video/em28xx/em28xx-video.c
parent0e3bd2b9996dfa4105617e2369155823df6b389a (diff)
V4L/DVB (7949): videodev: renamed the vidioc_*_fmt_* callbacks
The naming for the callbacks that handle the VIDIOC_ENUM_FMT and VIDIOC_S/G/TRY_FMT ioctls was very confusing. Renamed it to match the v4l2_buf_type name. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-video.c')
-rw-r--r--drivers/media/video/em28xx/em28xx-video.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c
index 285bc62bbe46..1c3e8b6291ea 100644
--- a/drivers/media/video/em28xx/em28xx-video.c
+++ b/drivers/media/video/em28xx/em28xx-video.c
@@ -683,7 +683,7 @@ static void get_scale(struct em28xx *dev,
683 IOCTL vidioc handling 683 IOCTL vidioc handling
684 ------------------------------------------------------------------*/ 684 ------------------------------------------------------------------*/
685 685
686static int vidioc_g_fmt_cap(struct file *file, void *priv, 686static int vidioc_g_fmt_vid_cap(struct file *file, void *priv,
687 struct v4l2_format *f) 687 struct v4l2_format *f)
688{ 688{
689 struct em28xx_fh *fh = priv; 689 struct em28xx_fh *fh = priv;
@@ -706,7 +706,7 @@ static int vidioc_g_fmt_cap(struct file *file, void *priv,
706 return 0; 706 return 0;
707} 707}
708 708
709static int vidioc_try_fmt_cap(struct file *file, void *priv, 709static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
710 struct v4l2_format *f) 710 struct v4l2_format *f)
711{ 711{
712 struct em28xx_fh *fh = priv; 712 struct em28xx_fh *fh = priv;
@@ -766,7 +766,7 @@ static int vidioc_try_fmt_cap(struct file *file, void *priv,
766 return 0; 766 return 0;
767} 767}
768 768
769static int vidioc_s_fmt_cap(struct file *file, void *priv, 769static int vidioc_s_fmt_vid_cap(struct file *file, void *priv,
770 struct v4l2_format *f) 770 struct v4l2_format *f)
771{ 771{
772 struct em28xx_fh *fh = priv; 772 struct em28xx_fh *fh = priv;
@@ -777,7 +777,7 @@ static int vidioc_s_fmt_cap(struct file *file, void *priv,
777 if (rc < 0) 777 if (rc < 0)
778 return rc; 778 return rc;
779 779
780 vidioc_try_fmt_cap(file, priv, f); 780 vidioc_try_fmt_vid_cap(file, priv, f);
781 781
782 mutex_lock(&dev->lock); 782 mutex_lock(&dev->lock);
783 783
@@ -826,7 +826,7 @@ static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id * norm)
826 /* Adjusts width/height, if needed */ 826 /* Adjusts width/height, if needed */
827 f.fmt.pix.width = dev->width; 827 f.fmt.pix.width = dev->width;
828 f.fmt.pix.height = dev->height; 828 f.fmt.pix.height = dev->height;
829 vidioc_try_fmt_cap(file, priv, &f); 829 vidioc_try_fmt_vid_cap(file, priv, &f);
830 830
831 mutex_lock(&dev->lock); 831 mutex_lock(&dev->lock);
832 832
@@ -1277,7 +1277,7 @@ static int vidioc_querycap(struct file *file, void *priv,
1277 return 0; 1277 return 0;
1278} 1278}
1279 1279
1280static int vidioc_enum_fmt_cap(struct file *file, void *priv, 1280static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv,
1281 struct v4l2_fmtdesc *fmtd) 1281 struct v4l2_fmtdesc *fmtd)
1282{ 1282{
1283 if (fmtd->index != 0) 1283 if (fmtd->index != 0)
@@ -1292,7 +1292,7 @@ static int vidioc_enum_fmt_cap(struct file *file, void *priv,
1292} 1292}
1293 1293
1294/* Sliced VBI ioctls */ 1294/* Sliced VBI ioctls */
1295static int vidioc_g_fmt_vbi_capture(struct file *file, void *priv, 1295static int vidioc_g_fmt_sliced_vbi_cap(struct file *file, void *priv,
1296 struct v4l2_format *f) 1296 struct v4l2_format *f)
1297{ 1297{
1298 struct em28xx_fh *fh = priv; 1298 struct em28xx_fh *fh = priv;
@@ -1316,7 +1316,7 @@ static int vidioc_g_fmt_vbi_capture(struct file *file, void *priv,
1316 return rc; 1316 return rc;
1317} 1317}
1318 1318
1319static int vidioc_try_set_vbi_capture(struct file *file, void *priv, 1319static int vidioc_try_set_sliced_vbi_cap(struct file *file, void *priv,
1320 struct v4l2_format *f) 1320 struct v4l2_format *f)
1321{ 1321{
1322 struct em28xx_fh *fh = priv; 1322 struct em28xx_fh *fh = priv;
@@ -1776,17 +1776,17 @@ static const struct video_device em28xx_video_template = {
1776 1776
1777 .minor = -1, 1777 .minor = -1,
1778 .vidioc_querycap = vidioc_querycap, 1778 .vidioc_querycap = vidioc_querycap,
1779 .vidioc_enum_fmt_cap = vidioc_enum_fmt_cap, 1779 .vidioc_enum_fmt_vid_cap = vidioc_enum_fmt_vid_cap,
1780 .vidioc_g_fmt_cap = vidioc_g_fmt_cap, 1780 .vidioc_g_fmt_vid_cap = vidioc_g_fmt_vid_cap,
1781 .vidioc_try_fmt_cap = vidioc_try_fmt_cap, 1781 .vidioc_try_fmt_vid_cap = vidioc_try_fmt_vid_cap,
1782 .vidioc_s_fmt_cap = vidioc_s_fmt_cap, 1782 .vidioc_s_fmt_vid_cap = vidioc_s_fmt_vid_cap,
1783 .vidioc_g_audio = vidioc_g_audio, 1783 .vidioc_g_audio = vidioc_g_audio,
1784 .vidioc_s_audio = vidioc_s_audio, 1784 .vidioc_s_audio = vidioc_s_audio,
1785 .vidioc_cropcap = vidioc_cropcap, 1785 .vidioc_cropcap = vidioc_cropcap,
1786 1786
1787 .vidioc_g_fmt_vbi_capture = vidioc_g_fmt_vbi_capture, 1787 .vidioc_g_fmt_sliced_vbi_cap = vidioc_g_fmt_sliced_vbi_cap,
1788 .vidioc_try_fmt_vbi_capture = vidioc_try_set_vbi_capture, 1788 .vidioc_try_fmt_sliced_vbi_cap = vidioc_try_set_sliced_vbi_cap,
1789 .vidioc_s_fmt_vbi_capture = vidioc_try_set_vbi_capture, 1789 .vidioc_s_fmt_sliced_vbi_cap = vidioc_try_set_sliced_vbi_cap,
1790 1790
1791 .vidioc_reqbufs = vidioc_reqbufs, 1791 .vidioc_reqbufs = vidioc_reqbufs,
1792 .vidioc_querybuf = vidioc_querybuf, 1792 .vidioc_querybuf = vidioc_querybuf,