aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-08-25 10:46:51 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-18 23:18:53 -0400
commita12222a73e7a9efd927eb99d1dec1cedc9887e0a (patch)
treecc46e7f54159ec8652d9f7b2b0d694c135e5886e /drivers
parentcca0e54905259a456d97652d4f1e2fe8b188b6ad (diff)
V4L/DVB (12521): soc-camera: use .s_std() from struct v4l2_subdev_core_ops
Remove .set_std() method from struct soc_camera_ops, use .s_std() from struct v4l2_subdev_core_ops instead. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/soc_camera.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c
index aa6614b60d6f..44a94dc934f8 100644
--- a/drivers/media/video/soc_camera.c
+++ b/drivers/media/video/soc_camera.c
@@ -152,12 +152,9 @@ static int soc_camera_s_std(struct file *file, void *priv, v4l2_std_id *a)
152{ 152{
153 struct soc_camera_file *icf = file->private_data; 153 struct soc_camera_file *icf = file->private_data;
154 struct soc_camera_device *icd = icf->icd; 154 struct soc_camera_device *icd = icf->icd;
155 int ret = 0; 155 struct soc_camera_host *ici = to_soc_camera_host(icd->dev.parent);
156
157 if (icd->ops->set_std)
158 ret = icd->ops->set_std(icd, a);
159 156
160 return ret; 157 return v4l2_device_call_until_err(&ici->v4l2_dev, (__u32)icd, core, s_std, *a);
161} 158}
162 159
163static int soc_camera_reqbufs(struct file *file, void *priv, 160static int soc_camera_reqbufs(struct file *file, void *priv,