diff options
Diffstat (limited to 'drivers/media/video/soc_camera_platform.c')
| -rw-r--r-- | drivers/media/video/soc_camera_platform.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/media/video/soc_camera_platform.c b/drivers/media/video/soc_camera_platform.c index bb7a9d480e8f..013ab06e3180 100644 --- a/drivers/media/video/soc_camera_platform.c +++ b/drivers/media/video/soc_camera_platform.c | |||
| @@ -79,19 +79,20 @@ soc_camera_platform_query_bus_param(struct soc_camera_device *icd) | |||
| 79 | return p->bus_param; | 79 | return p->bus_param; |
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | static int soc_camera_platform_set_fmt_cap(struct soc_camera_device *icd, | 82 | static int soc_camera_platform_set_fmt(struct soc_camera_device *icd, |
| 83 | __u32 pixfmt, struct v4l2_rect *rect) | 83 | __u32 pixfmt, struct v4l2_rect *rect) |
| 84 | { | 84 | { |
| 85 | return 0; | 85 | return 0; |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | static int soc_camera_platform_try_fmt_cap(struct soc_camera_device *icd, | 88 | static int soc_camera_platform_try_fmt(struct soc_camera_device *icd, |
| 89 | struct v4l2_format *f) | 89 | struct v4l2_format *f) |
| 90 | { | 90 | { |
| 91 | struct soc_camera_platform_info *p = soc_camera_platform_get_info(icd); | 91 | struct soc_camera_platform_info *p = soc_camera_platform_get_info(icd); |
| 92 | struct v4l2_pix_format *pix = &f->fmt.pix; | ||
| 92 | 93 | ||
| 93 | f->fmt.pix.width = p->format.width; | 94 | pix->width = p->format.width; |
| 94 | f->fmt.pix.height = p->format.height; | 95 | pix->height = p->format.height; |
| 95 | return 0; | 96 | return 0; |
| 96 | } | 97 | } |
| 97 | 98 | ||
| @@ -124,8 +125,8 @@ static struct soc_camera_ops soc_camera_platform_ops = { | |||
| 124 | .release = soc_camera_platform_release, | 125 | .release = soc_camera_platform_release, |
| 125 | .start_capture = soc_camera_platform_start_capture, | 126 | .start_capture = soc_camera_platform_start_capture, |
| 126 | .stop_capture = soc_camera_platform_stop_capture, | 127 | .stop_capture = soc_camera_platform_stop_capture, |
| 127 | .set_fmt_cap = soc_camera_platform_set_fmt_cap, | 128 | .set_fmt = soc_camera_platform_set_fmt, |
| 128 | .try_fmt_cap = soc_camera_platform_try_fmt_cap, | 129 | .try_fmt = soc_camera_platform_try_fmt, |
| 129 | .set_bus_param = soc_camera_platform_set_bus_param, | 130 | .set_bus_param = soc_camera_platform_set_bus_param, |
| 130 | .query_bus_param = soc_camera_platform_query_bus_param, | 131 | .query_bus_param = soc_camera_platform_query_bus_param, |
| 131 | }; | 132 | }; |
