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/usbvision | |
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/usbvision')
-rw-r--r-- | drivers/media/video/usbvision/usbvision-video.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c index d97261ab430..a9e5e08caec 100644 --- a/drivers/media/video/usbvision/usbvision-video.c +++ b/drivers/media/video/usbvision/usbvision-video.c | |||
@@ -998,7 +998,7 @@ static int vidioc_streamoff(struct file *file, | |||
998 | return 0; | 998 | return 0; |
999 | } | 999 | } |
1000 | 1000 | ||
1001 | static int vidioc_enum_fmt_cap (struct file *file, void *priv, | 1001 | static int vidioc_enum_fmt_vid_cap (struct file *file, void *priv, |
1002 | struct v4l2_fmtdesc *vfd) | 1002 | struct v4l2_fmtdesc *vfd) |
1003 | { | 1003 | { |
1004 | if(vfd->index>=USBVISION_SUPPORTED_PALETTES-1) { | 1004 | if(vfd->index>=USBVISION_SUPPORTED_PALETTES-1) { |
@@ -1012,7 +1012,7 @@ static int vidioc_enum_fmt_cap (struct file *file, void *priv, | |||
1012 | return 0; | 1012 | return 0; |
1013 | } | 1013 | } |
1014 | 1014 | ||
1015 | static int vidioc_g_fmt_cap (struct file *file, void *priv, | 1015 | static int vidioc_g_fmt_vid_cap (struct file *file, void *priv, |
1016 | struct v4l2_format *vf) | 1016 | struct v4l2_format *vf) |
1017 | { | 1017 | { |
1018 | struct video_device *dev = video_devdata(file); | 1018 | struct video_device *dev = video_devdata(file); |
@@ -1030,7 +1030,7 @@ static int vidioc_g_fmt_cap (struct file *file, void *priv, | |||
1030 | return 0; | 1030 | return 0; |
1031 | } | 1031 | } |
1032 | 1032 | ||
1033 | static int vidioc_try_fmt_cap (struct file *file, void *priv, | 1033 | static int vidioc_try_fmt_vid_cap (struct file *file, void *priv, |
1034 | struct v4l2_format *vf) | 1034 | struct v4l2_format *vf) |
1035 | { | 1035 | { |
1036 | struct video_device *dev = video_devdata(file); | 1036 | struct video_device *dev = video_devdata(file); |
@@ -1060,7 +1060,7 @@ static int vidioc_try_fmt_cap (struct file *file, void *priv, | |||
1060 | return 0; | 1060 | return 0; |
1061 | } | 1061 | } |
1062 | 1062 | ||
1063 | static int vidioc_s_fmt_cap(struct file *file, void *priv, | 1063 | static int vidioc_s_fmt_vid_cap(struct file *file, void *priv, |
1064 | struct v4l2_format *vf) | 1064 | struct v4l2_format *vf) |
1065 | { | 1065 | { |
1066 | struct video_device *dev = video_devdata(file); | 1066 | struct video_device *dev = video_devdata(file); |
@@ -1068,7 +1068,7 @@ static int vidioc_s_fmt_cap(struct file *file, void *priv, | |||
1068 | (struct usb_usbvision *) video_get_drvdata(dev); | 1068 | (struct usb_usbvision *) video_get_drvdata(dev); |
1069 | int ret; | 1069 | int ret; |
1070 | 1070 | ||
1071 | if( 0 != (ret=vidioc_try_fmt_cap (file, priv, vf)) ) { | 1071 | if( 0 != (ret=vidioc_try_fmt_vid_cap (file, priv, vf)) ) { |
1072 | return ret; | 1072 | return ret; |
1073 | } | 1073 | } |
1074 | 1074 | ||
@@ -1407,10 +1407,10 @@ static struct video_device usbvision_video_template = { | |||
1407 | .release = video_device_release, | 1407 | .release = video_device_release, |
1408 | .minor = -1, | 1408 | .minor = -1, |
1409 | .vidioc_querycap = vidioc_querycap, | 1409 | .vidioc_querycap = vidioc_querycap, |
1410 | .vidioc_enum_fmt_cap = vidioc_enum_fmt_cap, | 1410 | .vidioc_enum_fmt_vid_cap = vidioc_enum_fmt_vid_cap, |
1411 | .vidioc_g_fmt_cap = vidioc_g_fmt_cap, | 1411 | .vidioc_g_fmt_vid_cap = vidioc_g_fmt_vid_cap, |
1412 | .vidioc_try_fmt_cap = vidioc_try_fmt_cap, | 1412 | .vidioc_try_fmt_vid_cap = vidioc_try_fmt_vid_cap, |
1413 | .vidioc_s_fmt_cap = vidioc_s_fmt_cap, | 1413 | .vidioc_s_fmt_vid_cap = vidioc_s_fmt_vid_cap, |
1414 | .vidioc_reqbufs = vidioc_reqbufs, | 1414 | .vidioc_reqbufs = vidioc_reqbufs, |
1415 | .vidioc_querybuf = vidioc_querybuf, | 1415 | .vidioc_querybuf = vidioc_querybuf, |
1416 | .vidioc_qbuf = vidioc_qbuf, | 1416 | .vidioc_qbuf = vidioc_qbuf, |