diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-05-28 11:16:41 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:07:32 -0400 |
commit | 78b526a43561d7e5e702ba27948e422dfbc4bea1 (patch) | |
tree | 67c8b7150b51f6a82275af6f5baaedff4eaf40c0 /drivers/media/video/vivi.c | |
parent | 0e3bd2b9996dfa4105617e2369155823df6b389a (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/vivi.c')
-rw-r--r-- | drivers/media/video/vivi.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c index 5ff9a58b6135..a9747a10c546 100644 --- a/drivers/media/video/vivi.c +++ b/drivers/media/video/vivi.c | |||
@@ -630,7 +630,7 @@ static int vidioc_querycap(struct file *file, void *priv, | |||
630 | return 0; | 630 | return 0; |
631 | } | 631 | } |
632 | 632 | ||
633 | static int vidioc_enum_fmt_cap(struct file *file, void *priv, | 633 | static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv, |
634 | struct v4l2_fmtdesc *f) | 634 | struct v4l2_fmtdesc *f) |
635 | { | 635 | { |
636 | if (f->index > 0) | 636 | if (f->index > 0) |
@@ -641,7 +641,7 @@ static int vidioc_enum_fmt_cap(struct file *file, void *priv, | |||
641 | return 0; | 641 | return 0; |
642 | } | 642 | } |
643 | 643 | ||
644 | static int vidioc_g_fmt_cap(struct file *file, void *priv, | 644 | static int vidioc_g_fmt_vid_cap(struct file *file, void *priv, |
645 | struct v4l2_format *f) | 645 | struct v4l2_format *f) |
646 | { | 646 | { |
647 | struct vivi_fh *fh = priv; | 647 | struct vivi_fh *fh = priv; |
@@ -658,7 +658,7 @@ static int vidioc_g_fmt_cap(struct file *file, void *priv, | |||
658 | return (0); | 658 | return (0); |
659 | } | 659 | } |
660 | 660 | ||
661 | static int vidioc_try_fmt_cap(struct file *file, void *priv, | 661 | static int vidioc_try_fmt_vid_cap(struct file *file, void *priv, |
662 | struct v4l2_format *f) | 662 | struct v4l2_format *f) |
663 | { | 663 | { |
664 | struct vivi_fh *fh = priv; | 664 | struct vivi_fh *fh = priv; |
@@ -706,13 +706,13 @@ static int vidioc_try_fmt_cap(struct file *file, void *priv, | |||
706 | } | 706 | } |
707 | 707 | ||
708 | /*FIXME: This seems to be generic enough to be at videodev2 */ | 708 | /*FIXME: This seems to be generic enough to be at videodev2 */ |
709 | static int vidioc_s_fmt_cap(struct file *file, void *priv, | 709 | static int vidioc_s_fmt_vid_cap(struct file *file, void *priv, |
710 | struct v4l2_format *f) | 710 | struct v4l2_format *f) |
711 | { | 711 | { |
712 | struct vivi_fh *fh = priv; | 712 | struct vivi_fh *fh = priv; |
713 | struct videobuf_queue *q = &fh->vb_vidq; | 713 | struct videobuf_queue *q = &fh->vb_vidq; |
714 | 714 | ||
715 | int ret = vidioc_try_fmt_cap(file, fh, f); | 715 | int ret = vidioc_try_fmt_vid_cap(file, fh, f); |
716 | if (ret < 0) | 716 | if (ret < 0) |
717 | return (ret); | 717 | return (ret); |
718 | 718 | ||
@@ -1066,10 +1066,10 @@ static struct video_device vivi_template = { | |||
1066 | .release = video_device_release, | 1066 | .release = video_device_release, |
1067 | 1067 | ||
1068 | .vidioc_querycap = vidioc_querycap, | 1068 | .vidioc_querycap = vidioc_querycap, |
1069 | .vidioc_enum_fmt_cap = vidioc_enum_fmt_cap, | 1069 | .vidioc_enum_fmt_vid_cap = vidioc_enum_fmt_vid_cap, |
1070 | .vidioc_g_fmt_cap = vidioc_g_fmt_cap, | 1070 | .vidioc_g_fmt_vid_cap = vidioc_g_fmt_vid_cap, |
1071 | .vidioc_try_fmt_cap = vidioc_try_fmt_cap, | 1071 | .vidioc_try_fmt_vid_cap = vidioc_try_fmt_vid_cap, |
1072 | .vidioc_s_fmt_cap = vidioc_s_fmt_cap, | 1072 | .vidioc_s_fmt_vid_cap = vidioc_s_fmt_vid_cap, |
1073 | .vidioc_reqbufs = vidioc_reqbufs, | 1073 | .vidioc_reqbufs = vidioc_reqbufs, |
1074 | .vidioc_querybuf = vidioc_querybuf, | 1074 | .vidioc_querybuf = vidioc_querybuf, |
1075 | .vidioc_qbuf = vidioc_qbuf, | 1075 | .vidioc_qbuf = vidioc_qbuf, |