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/ov772x.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/ov772x.c')
-rw-r--r-- | drivers/media/video/ov772x.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/video/ov772x.c b/drivers/media/video/ov772x.c index 96964b79afac..76f296642db6 100644 --- a/drivers/media/video/ov772x.c +++ b/drivers/media/video/ov772x.c | |||
@@ -755,9 +755,9 @@ static int ov772x_set_register(struct soc_camera_device *icd, | |||
755 | } | 755 | } |
756 | #endif | 756 | #endif |
757 | 757 | ||
758 | static int ov772x_set_fmt_cap(struct soc_camera_device *icd, | 758 | static int ov772x_set_fmt(struct soc_camera_device *icd, |
759 | __u32 pixfmt, | 759 | __u32 pixfmt, |
760 | struct v4l2_rect *rect) | 760 | struct v4l2_rect *rect) |
761 | { | 761 | { |
762 | struct ov772x_priv *priv = container_of(icd, struct ov772x_priv, icd); | 762 | struct ov772x_priv *priv = container_of(icd, struct ov772x_priv, icd); |
763 | int ret = -EINVAL; | 763 | int ret = -EINVAL; |
@@ -778,8 +778,8 @@ static int ov772x_set_fmt_cap(struct soc_camera_device *icd, | |||
778 | return ret; | 778 | return ret; |
779 | } | 779 | } |
780 | 780 | ||
781 | static int ov772x_try_fmt_cap(struct soc_camera_device *icd, | 781 | static int ov772x_try_fmt(struct soc_camera_device *icd, |
782 | struct v4l2_format *f) | 782 | struct v4l2_format *f) |
783 | { | 783 | { |
784 | struct v4l2_pix_format *pix = &f->fmt.pix; | 784 | struct v4l2_pix_format *pix = &f->fmt.pix; |
785 | struct ov772x_priv *priv; | 785 | struct ov772x_priv *priv; |
@@ -868,8 +868,8 @@ static struct soc_camera_ops ov772x_ops = { | |||
868 | .release = ov772x_release, | 868 | .release = ov772x_release, |
869 | .start_capture = ov772x_start_capture, | 869 | .start_capture = ov772x_start_capture, |
870 | .stop_capture = ov772x_stop_capture, | 870 | .stop_capture = ov772x_stop_capture, |
871 | .set_fmt_cap = ov772x_set_fmt_cap, | 871 | .set_fmt = ov772x_set_fmt, |
872 | .try_fmt_cap = ov772x_try_fmt_cap, | 872 | .try_fmt = ov772x_try_fmt, |
873 | .set_bus_param = ov772x_set_bus_param, | 873 | .set_bus_param = ov772x_set_bus_param, |
874 | .query_bus_param = ov772x_query_bus_param, | 874 | .query_bus_param = ov772x_query_bus_param, |
875 | .get_chip_id = ov772x_get_chip_id, | 875 | .get_chip_id = ov772x_get_chip_id, |