diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2009-08-25 10:46:59 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-18 23:19:07 -0400 |
commit | c9c1f1c0dbe90b82939917fdc3e4c9ccad42342d (patch) | |
tree | 0a6605999055710b88c71c546f6b2507e675e845 /drivers/media/video/mx3_camera.c | |
parent | 08590b9613f7f624fe3a052586eea2dbb3584b38 (diff) |
V4L/DVB (12530): soc-camera: switch to using v4l2_subdev_call()
Use v4l2_subdev_call() instead of v4l2_device_call_until_err() in all host
drivers and in soc-camera core.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/mx3_camera.c')
-rw-r--r-- | drivers/media/video/mx3_camera.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/mx3_camera.c b/drivers/media/video/mx3_camera.c index de7ebfbf0397..f7888f30da51 100644 --- a/drivers/media/video/mx3_camera.c +++ b/drivers/media/video/mx3_camera.c | |||
@@ -786,8 +786,7 @@ static int mx3_camera_set_crop(struct soc_camera_device *icd, | |||
786 | struct v4l2_rect *rect = &a->c; | 786 | struct v4l2_rect *rect = &a->c; |
787 | struct soc_camera_host *ici = to_soc_camera_host(icd->dev.parent); | 787 | struct soc_camera_host *ici = to_soc_camera_host(icd->dev.parent); |
788 | struct mx3_camera_dev *mx3_cam = ici->priv; | 788 | struct mx3_camera_dev *mx3_cam = ici->priv; |
789 | struct device *control = to_soc_camera_control(icd); | 789 | struct v4l2_subdev *sd = soc_camera_to_subdev(icd); |
790 | struct v4l2_subdev *sd = dev_get_drvdata(control); | ||
791 | 790 | ||
792 | /* | 791 | /* |
793 | * We now know pixel formats and can decide upon DMA-channel(s) | 792 | * We now know pixel formats and can decide upon DMA-channel(s) |
@@ -809,6 +808,7 @@ static int mx3_camera_set_fmt(struct soc_camera_device *icd, | |||
809 | { | 808 | { |
810 | struct soc_camera_host *ici = to_soc_camera_host(icd->dev.parent); | 809 | struct soc_camera_host *ici = to_soc_camera_host(icd->dev.parent); |
811 | struct mx3_camera_dev *mx3_cam = ici->priv; | 810 | struct mx3_camera_dev *mx3_cam = ici->priv; |
811 | struct v4l2_subdev *sd = soc_camera_to_subdev(icd); | ||
812 | const struct soc_camera_format_xlate *xlate; | 812 | const struct soc_camera_format_xlate *xlate; |
813 | struct v4l2_pix_format *pix = &f->fmt.pix; | 813 | struct v4l2_pix_format *pix = &f->fmt.pix; |
814 | struct v4l2_rect rect = { | 814 | struct v4l2_rect rect = { |
@@ -837,7 +837,7 @@ static int mx3_camera_set_fmt(struct soc_camera_device *icd, | |||
837 | 837 | ||
838 | configure_geometry(mx3_cam, &rect); | 838 | configure_geometry(mx3_cam, &rect); |
839 | 839 | ||
840 | ret = v4l2_device_call_until_err(&ici->v4l2_dev, 0, video, s_fmt, f); | 840 | ret = v4l2_subdev_call(sd, video, s_fmt, f); |
841 | if (!ret) { | 841 | if (!ret) { |
842 | icd->buswidth = xlate->buswidth; | 842 | icd->buswidth = xlate->buswidth; |
843 | icd->current_fmt = xlate->host_fmt; | 843 | icd->current_fmt = xlate->host_fmt; |
@@ -849,7 +849,7 @@ static int mx3_camera_set_fmt(struct soc_camera_device *icd, | |||
849 | static int mx3_camera_try_fmt(struct soc_camera_device *icd, | 849 | static int mx3_camera_try_fmt(struct soc_camera_device *icd, |
850 | struct v4l2_format *f) | 850 | struct v4l2_format *f) |
851 | { | 851 | { |
852 | struct soc_camera_host *ici = to_soc_camera_host(icd->dev.parent); | 852 | struct v4l2_subdev *sd = soc_camera_to_subdev(icd); |
853 | const struct soc_camera_format_xlate *xlate; | 853 | const struct soc_camera_format_xlate *xlate; |
854 | struct v4l2_pix_format *pix = &f->fmt.pix; | 854 | struct v4l2_pix_format *pix = &f->fmt.pix; |
855 | __u32 pixfmt = pix->pixelformat; | 855 | __u32 pixfmt = pix->pixelformat; |
@@ -875,7 +875,7 @@ static int mx3_camera_try_fmt(struct soc_camera_device *icd, | |||
875 | /* camera has to see its format, but the user the original one */ | 875 | /* camera has to see its format, but the user the original one */ |
876 | pix->pixelformat = xlate->cam_fmt->fourcc; | 876 | pix->pixelformat = xlate->cam_fmt->fourcc; |
877 | /* limit to sensor capabilities */ | 877 | /* limit to sensor capabilities */ |
878 | ret = v4l2_device_call_until_err(&ici->v4l2_dev, 0, video, try_fmt, f); | 878 | ret = v4l2_subdev_call(sd, video, try_fmt, f); |
879 | pix->pixelformat = xlate->host_fmt->fourcc; | 879 | pix->pixelformat = xlate->host_fmt->fourcc; |
880 | 880 | ||
881 | field = pix->field; | 881 | field = pix->field; |