aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88
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/cx88
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/cx88')
-rw-r--r--drivers/media/video/cx88/cx88-blackbird.c16
-rw-r--r--drivers/media/video/cx88/cx88-video.c24
2 files changed, 20 insertions, 20 deletions
diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c
index 6c0c94c5ef91..fb67e4188b2f 100644
--- a/drivers/media/video/cx88/cx88-blackbird.c
+++ b/drivers/media/video/cx88/cx88-blackbird.c
@@ -737,7 +737,7 @@ static int vidioc_querycap (struct file *file, void *priv,
737 return 0; 737 return 0;
738} 738}
739 739
740static int vidioc_enum_fmt_cap (struct file *file, void *priv, 740static int vidioc_enum_fmt_vid_cap (struct file *file, void *priv,
741 struct v4l2_fmtdesc *f) 741 struct v4l2_fmtdesc *f)
742{ 742{
743 if (f->index != 0) 743 if (f->index != 0)
@@ -749,7 +749,7 @@ static int vidioc_enum_fmt_cap (struct file *file, void *priv,
749 return 0; 749 return 0;
750} 750}
751 751
752static int vidioc_g_fmt_cap (struct file *file, void *priv, 752static int vidioc_g_fmt_vid_cap (struct file *file, void *priv,
753 struct v4l2_format *f) 753 struct v4l2_format *f)
754{ 754{
755 struct cx8802_fh *fh = priv; 755 struct cx8802_fh *fh = priv;
@@ -768,7 +768,7 @@ static int vidioc_g_fmt_cap (struct file *file, void *priv,
768 return 0; 768 return 0;
769} 769}
770 770
771static int vidioc_try_fmt_cap (struct file *file, void *priv, 771static int vidioc_try_fmt_vid_cap (struct file *file, void *priv,
772 struct v4l2_format *f) 772 struct v4l2_format *f)
773{ 773{
774 struct cx8802_fh *fh = priv; 774 struct cx8802_fh *fh = priv;
@@ -784,7 +784,7 @@ static int vidioc_try_fmt_cap (struct file *file, void *priv,
784 return 0; 784 return 0;
785} 785}
786 786
787static int vidioc_s_fmt_cap (struct file *file, void *priv, 787static int vidioc_s_fmt_vid_cap (struct file *file, void *priv,
788 struct v4l2_format *f) 788 struct v4l2_format *f)
789{ 789{
790 struct cx8802_fh *fh = priv; 790 struct cx8802_fh *fh = priv;
@@ -1181,10 +1181,10 @@ static struct video_device cx8802_mpeg_template =
1181 .minor = -1, 1181 .minor = -1,
1182 .vidioc_querymenu = vidioc_querymenu, 1182 .vidioc_querymenu = vidioc_querymenu,
1183 .vidioc_querycap = vidioc_querycap, 1183 .vidioc_querycap = vidioc_querycap,
1184 .vidioc_enum_fmt_cap = vidioc_enum_fmt_cap, 1184 .vidioc_enum_fmt_vid_cap = vidioc_enum_fmt_vid_cap,
1185 .vidioc_g_fmt_cap = vidioc_g_fmt_cap, 1185 .vidioc_g_fmt_vid_cap = vidioc_g_fmt_vid_cap,
1186 .vidioc_try_fmt_cap = vidioc_try_fmt_cap, 1186 .vidioc_try_fmt_vid_cap = vidioc_try_fmt_vid_cap,
1187 .vidioc_s_fmt_cap = vidioc_s_fmt_cap, 1187 .vidioc_s_fmt_vid_cap = vidioc_s_fmt_vid_cap,
1188 .vidioc_reqbufs = vidioc_reqbufs, 1188 .vidioc_reqbufs = vidioc_reqbufs,
1189 .vidioc_querybuf = vidioc_querybuf, 1189 .vidioc_querybuf = vidioc_querybuf,
1190 .vidioc_qbuf = vidioc_qbuf, 1190 .vidioc_qbuf = vidioc_qbuf,
diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c
index eea23f95edb7..0fed5cd2ccea 100644
--- a/drivers/media/video/cx88/cx88-video.c
+++ b/drivers/media/video/cx88/cx88-video.c
@@ -1045,7 +1045,7 @@ static void init_controls(struct cx88_core *core)
1045/* ------------------------------------------------------------------ */ 1045/* ------------------------------------------------------------------ */
1046/* VIDEO IOCTLS */ 1046/* VIDEO IOCTLS */
1047 1047
1048static int vidioc_g_fmt_cap (struct file *file, void *priv, 1048static int vidioc_g_fmt_vid_cap(struct file *file, void *priv,
1049 struct v4l2_format *f) 1049 struct v4l2_format *f)
1050{ 1050{
1051 struct cx8800_fh *fh = priv; 1051 struct cx8800_fh *fh = priv;
@@ -1061,7 +1061,7 @@ static int vidioc_g_fmt_cap (struct file *file, void *priv,
1061 return 0; 1061 return 0;
1062} 1062}
1063 1063
1064static int vidioc_try_fmt_cap (struct file *file, void *priv, 1064static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
1065 struct v4l2_format *f) 1065 struct v4l2_format *f)
1066{ 1066{
1067 struct cx88_core *core = ((struct cx8800_fh *)priv)->dev->core; 1067 struct cx88_core *core = ((struct cx8800_fh *)priv)->dev->core;
@@ -1112,11 +1112,11 @@ static int vidioc_try_fmt_cap (struct file *file, void *priv,
1112 return 0; 1112 return 0;
1113} 1113}
1114 1114
1115static int vidioc_s_fmt_cap (struct file *file, void *priv, 1115static int vidioc_s_fmt_vid_cap(struct file *file, void *priv,
1116 struct v4l2_format *f) 1116 struct v4l2_format *f)
1117{ 1117{
1118 struct cx8800_fh *fh = priv; 1118 struct cx8800_fh *fh = priv;
1119 int err = vidioc_try_fmt_cap (file,priv,f); 1119 int err = vidioc_try_fmt_vid_cap (file,priv,f);
1120 1120
1121 if (0 != err) 1121 if (0 != err)
1122 return err; 1122 return err;
@@ -1147,7 +1147,7 @@ static int vidioc_querycap (struct file *file, void *priv,
1147 return 0; 1147 return 0;
1148} 1148}
1149 1149
1150static int vidioc_enum_fmt_cap (struct file *file, void *priv, 1150static int vidioc_enum_fmt_vid_cap (struct file *file, void *priv,
1151 struct v4l2_fmtdesc *f) 1151 struct v4l2_fmtdesc *f)
1152{ 1152{
1153 if (unlikely(f->index >= ARRAY_SIZE(formats))) 1153 if (unlikely(f->index >= ARRAY_SIZE(formats)))
@@ -1690,13 +1690,13 @@ static struct video_device cx8800_video_template =
1690 .fops = &video_fops, 1690 .fops = &video_fops,
1691 .minor = -1, 1691 .minor = -1,
1692 .vidioc_querycap = vidioc_querycap, 1692 .vidioc_querycap = vidioc_querycap,
1693 .vidioc_enum_fmt_cap = vidioc_enum_fmt_cap, 1693 .vidioc_enum_fmt_vid_cap = vidioc_enum_fmt_vid_cap,
1694 .vidioc_g_fmt_cap = vidioc_g_fmt_cap, 1694 .vidioc_g_fmt_vid_cap = vidioc_g_fmt_vid_cap,
1695 .vidioc_try_fmt_cap = vidioc_try_fmt_cap, 1695 .vidioc_try_fmt_vid_cap = vidioc_try_fmt_vid_cap,
1696 .vidioc_s_fmt_cap = vidioc_s_fmt_cap, 1696 .vidioc_s_fmt_vid_cap = vidioc_s_fmt_vid_cap,
1697 .vidioc_g_fmt_vbi = cx8800_vbi_fmt, 1697 .vidioc_g_fmt_vbi_cap = cx8800_vbi_fmt,
1698 .vidioc_try_fmt_vbi = cx8800_vbi_fmt, 1698 .vidioc_try_fmt_vbi_cap = cx8800_vbi_fmt,
1699 .vidioc_s_fmt_vbi = cx8800_vbi_fmt, 1699 .vidioc_s_fmt_vbi_cap = cx8800_vbi_fmt,
1700 .vidioc_reqbufs = vidioc_reqbufs, 1700 .vidioc_reqbufs = vidioc_reqbufs,
1701 .vidioc_querybuf = vidioc_querybuf, 1701 .vidioc_querybuf = vidioc_querybuf,
1702 .vidioc_qbuf = vidioc_qbuf, 1702 .vidioc_qbuf = vidioc_qbuf,