aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/sh_mobile_ceu_camera.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <lyakh@axis700.grange>2008-12-01 07:45:21 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-30 06:38:23 -0500
commitd8fac217c58f0101a351b9c8c80f1665bd9efef9 (patch)
tree5b6b71e7f7cacf81620c046b5944134db2d70734 /drivers/media/video/sh_mobile_ceu_camera.c
parent25c4d74ea6f07f2aaa3df537619680ba967043f5 (diff)
V4L/DVB (9788): soc-camera: simplify naming
We anyway don't follow the s_fmt_vid_cap / g_fmt_vid_cap / try_fmt_vid_cap naming, and soc-camera is so far only about video capture, let's simplify operation names a bit further. set_fmt_cap / try_fmt_cap wasn't a very good choice too. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/sh_mobile_ceu_camera.c')
-rw-r--r--drivers/media/video/sh_mobile_ceu_camera.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/video/sh_mobile_ceu_camera.c b/drivers/media/video/sh_mobile_ceu_camera.c
index 02f846d1908b..d284d5d1dd01 100644
--- a/drivers/media/video/sh_mobile_ceu_camera.c
+++ b/drivers/media/video/sh_mobile_ceu_camera.c
@@ -450,8 +450,8 @@ static int sh_mobile_ceu_try_bus_param(struct soc_camera_device *icd,
450 return 0; 450 return 0;
451} 451}
452 452
453static int sh_mobile_ceu_set_fmt_cap(struct soc_camera_device *icd, 453static int sh_mobile_ceu_set_fmt(struct soc_camera_device *icd,
454 __u32 pixfmt, struct v4l2_rect *rect) 454 __u32 pixfmt, struct v4l2_rect *rect)
455{ 455{
456 const struct soc_camera_data_format *cam_fmt; 456 const struct soc_camera_data_format *cam_fmt;
457 int ret; 457 int ret;
@@ -466,15 +466,15 @@ static int sh_mobile_ceu_set_fmt_cap(struct soc_camera_device *icd,
466 return -EINVAL; 466 return -EINVAL;
467 } 467 }
468 468
469 ret = icd->ops->set_fmt_cap(icd, pixfmt, rect); 469 ret = icd->ops->set_fmt(icd, pixfmt, rect);
470 if (pixfmt && !ret) 470 if (pixfmt && !ret)
471 icd->current_fmt = cam_fmt; 471 icd->current_fmt = cam_fmt;
472 472
473 return ret; 473 return ret;
474} 474}
475 475
476static int sh_mobile_ceu_try_fmt_cap(struct soc_camera_device *icd, 476static int sh_mobile_ceu_try_fmt(struct soc_camera_device *icd,
477 struct v4l2_format *f) 477 struct v4l2_format *f)
478{ 478{
479 const struct soc_camera_data_format *cam_fmt; 479 const struct soc_camera_data_format *cam_fmt;
480 int ret = sh_mobile_ceu_try_bus_param(icd, f->fmt.pix.pixelformat); 480 int ret = sh_mobile_ceu_try_bus_param(icd, f->fmt.pix.pixelformat);
@@ -508,7 +508,7 @@ static int sh_mobile_ceu_try_fmt_cap(struct soc_camera_device *icd,
508 f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; 508 f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline;
509 509
510 /* limit to sensor capabilities */ 510 /* limit to sensor capabilities */
511 return icd->ops->try_fmt_cap(icd, f); 511 return icd->ops->try_fmt(icd, f);
512} 512}
513 513
514static int sh_mobile_ceu_reqbufs(struct soc_camera_file *icf, 514static int sh_mobile_ceu_reqbufs(struct soc_camera_file *icf,
@@ -576,8 +576,8 @@ static struct soc_camera_host_ops sh_mobile_ceu_host_ops = {
576 .owner = THIS_MODULE, 576 .owner = THIS_MODULE,
577 .add = sh_mobile_ceu_add_device, 577 .add = sh_mobile_ceu_add_device,
578 .remove = sh_mobile_ceu_remove_device, 578 .remove = sh_mobile_ceu_remove_device,
579 .set_fmt_cap = sh_mobile_ceu_set_fmt_cap, 579 .set_fmt = sh_mobile_ceu_set_fmt,
580 .try_fmt_cap = sh_mobile_ceu_try_fmt_cap, 580 .try_fmt = sh_mobile_ceu_try_fmt,
581 .reqbufs = sh_mobile_ceu_reqbufs, 581 .reqbufs = sh_mobile_ceu_reqbufs,
582 .poll = sh_mobile_ceu_poll, 582 .poll = sh_mobile_ceu_poll,
583 .querycap = sh_mobile_ceu_querycap, 583 .querycap = sh_mobile_ceu_querycap,