diff options
author | Guennadi Liakhovetski <lyakh@axis700.grange> | 2008-12-01 07:45:21 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 06:38:23 -0500 |
commit | d8fac217c58f0101a351b9c8c80f1665bd9efef9 (patch) | |
tree | 5b6b71e7f7cacf81620c046b5944134db2d70734 /drivers/media/video/soc_camera.c | |
parent | 25c4d74ea6f07f2aaa3df537619680ba967043f5 (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/soc_camera.c')
-rw-r--r-- | drivers/media/video/soc_camera.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c index 01c33841d1c6..9db66a4fd1a3 100644 --- a/drivers/media/video/soc_camera.c +++ b/drivers/media/video/soc_camera.c | |||
@@ -73,7 +73,7 @@ static int soc_camera_try_fmt_vid_cap(struct file *file, void *priv, | |||
73 | } | 73 | } |
74 | 74 | ||
75 | /* limit format to hardware capabilities */ | 75 | /* limit format to hardware capabilities */ |
76 | ret = ici->ops->try_fmt_cap(icd, f); | 76 | ret = ici->ops->try_fmt(icd, f); |
77 | 77 | ||
78 | return ret; | 78 | return ret; |
79 | } | 79 | } |
@@ -324,7 +324,7 @@ static int soc_camera_s_fmt_vid_cap(struct file *file, void *priv, | |||
324 | rect.top = icd->y_current; | 324 | rect.top = icd->y_current; |
325 | rect.width = f->fmt.pix.width; | 325 | rect.width = f->fmt.pix.width; |
326 | rect.height = f->fmt.pix.height; | 326 | rect.height = f->fmt.pix.height; |
327 | ret = ici->ops->set_fmt_cap(icd, f->fmt.pix.pixelformat, &rect); | 327 | ret = ici->ops->set_fmt(icd, f->fmt.pix.pixelformat, &rect); |
328 | if (ret < 0) { | 328 | if (ret < 0) { |
329 | return ret; | 329 | return ret; |
330 | } else if (!icd->current_fmt || | 330 | } else if (!icd->current_fmt || |
@@ -553,7 +553,7 @@ static int soc_camera_s_crop(struct file *file, void *fh, | |||
553 | if (a->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) | 553 | if (a->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) |
554 | return -EINVAL; | 554 | return -EINVAL; |
555 | 555 | ||
556 | ret = ici->ops->set_fmt_cap(icd, 0, &a->c); | 556 | ret = ici->ops->set_fmt(icd, 0, &a->c); |
557 | if (!ret) { | 557 | if (!ret) { |
558 | icd->width = a->c.width; | 558 | icd->width = a->c.width; |
559 | icd->height = a->c.height; | 559 | icd->height = a->c.height; |