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/meye.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/meye.c')
-rw-r--r-- | drivers/media/video/meye.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/drivers/media/video/meye.c b/drivers/media/video/meye.c index e7ccbc895d7a..2fb5854cf6f0 100644 --- a/drivers/media/video/meye.c +++ b/drivers/media/video/meye.c | |||
@@ -1253,7 +1253,7 @@ static int vidioc_g_ctrl(struct file *file, void *fh, struct v4l2_control *c) | |||
1253 | return 0; | 1253 | return 0; |
1254 | } | 1254 | } |
1255 | 1255 | ||
1256 | static int vidioc_enum_fmt_cap(struct file *file, void *fh, | 1256 | static int vidioc_enum_fmt_vid_cap(struct file *file, void *fh, |
1257 | struct v4l2_fmtdesc *f) | 1257 | struct v4l2_fmtdesc *f) |
1258 | { | 1258 | { |
1259 | if (f->index > 1) | 1259 | if (f->index > 1) |
@@ -1283,7 +1283,7 @@ static int vidioc_enum_fmt_cap(struct file *file, void *fh, | |||
1283 | return 0; | 1283 | return 0; |
1284 | } | 1284 | } |
1285 | 1285 | ||
1286 | static int vidioc_try_fmt_cap(struct file *file, void *fh, | 1286 | static int vidioc_try_fmt_vid_cap(struct file *file, void *fh, |
1287 | struct v4l2_format *f) | 1287 | struct v4l2_format *f) |
1288 | { | 1288 | { |
1289 | if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) | 1289 | if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) |
@@ -1316,7 +1316,8 @@ static int vidioc_try_fmt_cap(struct file *file, void *fh, | |||
1316 | return 0; | 1316 | return 0; |
1317 | } | 1317 | } |
1318 | 1318 | ||
1319 | static int vidioc_g_fmt_cap(struct file *file, void *fh, struct v4l2_format *f) | 1319 | static int vidioc_g_fmt_vid_cap(struct file *file, void *fh, |
1320 | struct v4l2_format *f) | ||
1320 | { | 1321 | { |
1321 | if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) | 1322 | if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) |
1322 | return -EINVAL; | 1323 | return -EINVAL; |
@@ -1346,7 +1347,8 @@ static int vidioc_g_fmt_cap(struct file *file, void *fh, struct v4l2_format *f) | |||
1346 | return 0; | 1347 | return 0; |
1347 | } | 1348 | } |
1348 | 1349 | ||
1349 | static int vidioc_s_fmt_cap(struct file *file, void *fh, struct v4l2_format *f) | 1350 | static int vidioc_s_fmt_vid_cap(struct file *file, void *fh, |
1351 | struct v4l2_format *f) | ||
1350 | { | 1352 | { |
1351 | if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) | 1353 | if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) |
1352 | return -EINVAL; | 1354 | return -EINVAL; |
@@ -1709,10 +1711,10 @@ static struct video_device meye_template = { | |||
1709 | .vidioc_queryctrl = vidioc_queryctrl, | 1711 | .vidioc_queryctrl = vidioc_queryctrl, |
1710 | .vidioc_s_ctrl = vidioc_s_ctrl, | 1712 | .vidioc_s_ctrl = vidioc_s_ctrl, |
1711 | .vidioc_g_ctrl = vidioc_g_ctrl, | 1713 | .vidioc_g_ctrl = vidioc_g_ctrl, |
1712 | .vidioc_enum_fmt_cap = vidioc_enum_fmt_cap, | 1714 | .vidioc_enum_fmt_vid_cap = vidioc_enum_fmt_vid_cap, |
1713 | .vidioc_try_fmt_cap = vidioc_try_fmt_cap, | 1715 | .vidioc_try_fmt_vid_cap = vidioc_try_fmt_vid_cap, |
1714 | .vidioc_g_fmt_cap = vidioc_g_fmt_cap, | 1716 | .vidioc_g_fmt_vid_cap = vidioc_g_fmt_vid_cap, |
1715 | .vidioc_s_fmt_cap = vidioc_s_fmt_cap, | 1717 | .vidioc_s_fmt_vid_cap = vidioc_s_fmt_vid_cap, |
1716 | .vidioc_reqbufs = vidioc_reqbufs, | 1718 | .vidioc_reqbufs = vidioc_reqbufs, |
1717 | .vidioc_querybuf = vidioc_querybuf, | 1719 | .vidioc_querybuf = vidioc_querybuf, |
1718 | .vidioc_qbuf = vidioc_qbuf, | 1720 | .vidioc_qbuf = vidioc_qbuf, |