aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bt8xx/bttv-driver.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/bt8xx/bttv-driver.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/bt8xx/bttv-driver.c')
-rw-r--r--drivers/media/video/bt8xx/bttv-driver.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c
index 0165aac533bf..c4aa802494ff 100644
--- a/drivers/media/video/bt8xx/bttv-driver.c
+++ b/drivers/media/video/bt8xx/bttv-driver.c
@@ -2448,7 +2448,7 @@ pix_format_set_size (struct v4l2_pix_format * f,
2448 } 2448 }
2449} 2449}
2450 2450
2451static int bttv_g_fmt_cap(struct file *file, void *priv, 2451static int bttv_g_fmt_vid_cap(struct file *file, void *priv,
2452 struct v4l2_format *f) 2452 struct v4l2_format *f)
2453{ 2453{
2454 struct bttv_fh *fh = priv; 2454 struct bttv_fh *fh = priv;
@@ -2461,7 +2461,7 @@ static int bttv_g_fmt_cap(struct file *file, void *priv,
2461 return 0; 2461 return 0;
2462} 2462}
2463 2463
2464static int bttv_g_fmt_overlay(struct file *file, void *priv, 2464static int bttv_g_fmt_vid_overlay(struct file *file, void *priv,
2465 struct v4l2_format *f) 2465 struct v4l2_format *f)
2466{ 2466{
2467 struct bttv_fh *fh = priv; 2467 struct bttv_fh *fh = priv;
@@ -2472,7 +2472,7 @@ static int bttv_g_fmt_overlay(struct file *file, void *priv,
2472 return 0; 2472 return 0;
2473} 2473}
2474 2474
2475static int bttv_try_fmt_cap(struct file *file, void *priv, 2475static int bttv_try_fmt_vid_cap(struct file *file, void *priv,
2476 struct v4l2_format *f) 2476 struct v4l2_format *f)
2477{ 2477{
2478 const struct bttv_format *fmt; 2478 const struct bttv_format *fmt;
@@ -2532,7 +2532,7 @@ static int bttv_try_fmt_cap(struct file *file, void *priv,
2532 return 0; 2532 return 0;
2533} 2533}
2534 2534
2535static int bttv_try_fmt_overlay(struct file *file, void *priv, 2535static int bttv_try_fmt_vid_overlay(struct file *file, void *priv,
2536 struct v4l2_format *f) 2536 struct v4l2_format *f)
2537{ 2537{
2538 struct bttv_fh *fh = priv; 2538 struct bttv_fh *fh = priv;
@@ -2542,7 +2542,7 @@ static int bttv_try_fmt_overlay(struct file *file, void *priv,
2542 /* adjust_crop */ 0); 2542 /* adjust_crop */ 0);
2543} 2543}
2544 2544
2545static int bttv_s_fmt_cap(struct file *file, void *priv, 2545static int bttv_s_fmt_vid_cap(struct file *file, void *priv,
2546 struct v4l2_format *f) 2546 struct v4l2_format *f)
2547{ 2547{
2548 int retval; 2548 int retval;
@@ -2556,7 +2556,7 @@ static int bttv_s_fmt_cap(struct file *file, void *priv,
2556 if (0 != retval) 2556 if (0 != retval)
2557 return retval; 2557 return retval;
2558 2558
2559 retval = bttv_try_fmt_cap(file, priv, f); 2559 retval = bttv_try_fmt_vid_cap(file, priv, f);
2560 if (0 != retval) 2560 if (0 != retval)
2561 return retval; 2561 return retval;
2562 2562
@@ -2591,7 +2591,7 @@ static int bttv_s_fmt_cap(struct file *file, void *priv,
2591 return 0; 2591 return 0;
2592} 2592}
2593 2593
2594static int bttv_s_fmt_overlay(struct file *file, void *priv, 2594static int bttv_s_fmt_vid_overlay(struct file *file, void *priv,
2595 struct v4l2_format *f) 2595 struct v4l2_format *f)
2596{ 2596{
2597 struct bttv_fh *fh = priv; 2597 struct bttv_fh *fh = priv;
@@ -2661,7 +2661,7 @@ static int bttv_querycap(struct file *file, void *priv,
2661 return 0; 2661 return 0;
2662} 2662}
2663 2663
2664static int bttv_enum_fmt_vbi(struct file *file, void *priv, 2664static int bttv_enum_fmt_vbi_cap(struct file *file, void *priv,
2665 struct v4l2_fmtdesc *f) 2665 struct v4l2_fmtdesc *f)
2666{ 2666{
2667 if (0 != f->index) 2667 if (0 != f->index)
@@ -2692,7 +2692,7 @@ static int bttv_enum_fmt_cap_ovr(struct v4l2_fmtdesc *f)
2692 return i; 2692 return i;
2693} 2693}
2694 2694
2695static int bttv_enum_fmt_cap(struct file *file, void *priv, 2695static int bttv_enum_fmt_vid_cap(struct file *file, void *priv,
2696 struct v4l2_fmtdesc *f) 2696 struct v4l2_fmtdesc *f)
2697{ 2697{
2698 int rc = bttv_enum_fmt_cap_ovr(f); 2698 int rc = bttv_enum_fmt_cap_ovr(f);
@@ -2703,7 +2703,7 @@ static int bttv_enum_fmt_cap(struct file *file, void *priv,
2703 return 0; 2703 return 0;
2704} 2704}
2705 2705
2706static int bttv_enum_fmt_overlay(struct file *file, void *priv, 2706static int bttv_enum_fmt_vid_overlay(struct file *file, void *priv,
2707 struct v4l2_fmtdesc *f) 2707 struct v4l2_fmtdesc *f)
2708{ 2708{
2709 int rc; 2709 int rc;
@@ -3362,18 +3362,18 @@ static struct video_device bttv_video_template =
3362 .fops = &bttv_fops, 3362 .fops = &bttv_fops,
3363 .minor = -1, 3363 .minor = -1,
3364 .vidioc_querycap = bttv_querycap, 3364 .vidioc_querycap = bttv_querycap,
3365 .vidioc_enum_fmt_cap = bttv_enum_fmt_cap, 3365 .vidioc_enum_fmt_vid_cap = bttv_enum_fmt_vid_cap,
3366 .vidioc_g_fmt_cap = bttv_g_fmt_cap, 3366 .vidioc_g_fmt_vid_cap = bttv_g_fmt_vid_cap,
3367 .vidioc_try_fmt_cap = bttv_try_fmt_cap, 3367 .vidioc_try_fmt_vid_cap = bttv_try_fmt_vid_cap,
3368 .vidioc_s_fmt_cap = bttv_s_fmt_cap, 3368 .vidioc_s_fmt_vid_cap = bttv_s_fmt_vid_cap,
3369 .vidioc_enum_fmt_overlay = bttv_enum_fmt_overlay, 3369 .vidioc_enum_fmt_vid_overlay = bttv_enum_fmt_vid_overlay,
3370 .vidioc_g_fmt_overlay = bttv_g_fmt_overlay, 3370 .vidioc_g_fmt_vid_overlay = bttv_g_fmt_vid_overlay,
3371 .vidioc_try_fmt_overlay = bttv_try_fmt_overlay, 3371 .vidioc_try_fmt_vid_overlay = bttv_try_fmt_vid_overlay,
3372 .vidioc_s_fmt_overlay = bttv_s_fmt_overlay, 3372 .vidioc_s_fmt_vid_overlay = bttv_s_fmt_vid_overlay,
3373 .vidioc_enum_fmt_vbi = bttv_enum_fmt_vbi, 3373 .vidioc_enum_fmt_vbi_cap = bttv_enum_fmt_vbi_cap,
3374 .vidioc_g_fmt_vbi = bttv_g_fmt_vbi, 3374 .vidioc_g_fmt_vbi_cap = bttv_g_fmt_vbi_cap,
3375 .vidioc_try_fmt_vbi = bttv_try_fmt_vbi, 3375 .vidioc_try_fmt_vbi_cap = bttv_try_fmt_vbi_cap,
3376 .vidioc_s_fmt_vbi = bttv_s_fmt_vbi, 3376 .vidioc_s_fmt_vbi_cap = bttv_s_fmt_vbi_cap,
3377 .vidioc_g_audio = bttv_g_audio, 3377 .vidioc_g_audio = bttv_g_audio,
3378 .vidioc_s_audio = bttv_s_audio, 3378 .vidioc_s_audio = bttv_s_audio,
3379 .vidioc_cropcap = bttv_cropcap, 3379 .vidioc_cropcap = bttv_cropcap,