diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2009-08-25 10:46:17 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-18 23:18:43 -0400 |
commit | a0705b07f1816ae2b85388fcda71de69c221b4b8 (patch) | |
tree | 7406da18408564e38645eeaa22ea49324fd1ca6a /drivers/media/video/mt9v022.c | |
parent | 4a6110bc50da9a1883bf45614ac1d591253f0457 (diff) |
V4L/DVB (12515): soc-camera: use struct v4l2_rect in struct soc_camera_device
Switch to using struct v4l2_rect in struct soc_camera_device for uniformity and
simplicity.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/mt9v022.c')
-rw-r--r-- | drivers/media/video/mt9v022.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/media/video/mt9v022.c b/drivers/media/video/mt9v022.c index 3cb9f0f1e256..d2b0981ec1c1 100644 --- a/drivers/media/video/mt9v022.c +++ b/drivers/media/video/mt9v022.c | |||
@@ -298,8 +298,8 @@ static int mt9v022_s_fmt(struct v4l2_subdev *sd, struct v4l2_format *f) | |||
298 | struct soc_camera_device *icd = client->dev.platform_data; | 298 | struct soc_camera_device *icd = client->dev.platform_data; |
299 | struct v4l2_pix_format *pix = &f->fmt.pix; | 299 | struct v4l2_pix_format *pix = &f->fmt.pix; |
300 | struct v4l2_rect rect = { | 300 | struct v4l2_rect rect = { |
301 | .left = icd->x_current, | 301 | .left = icd->rect_current.left, |
302 | .top = icd->y_current, | 302 | .top = icd->rect_current.top, |
303 | .width = pix->width, | 303 | .width = pix->width, |
304 | .height = pix->height, | 304 | .height = pix->height, |
305 | }; | 305 | }; |
@@ -741,16 +741,16 @@ static int mt9v022_probe(struct i2c_client *client, | |||
741 | 741 | ||
742 | mt9v022->chip_control = MT9V022_CHIP_CONTROL_DEFAULT; | 742 | mt9v022->chip_control = MT9V022_CHIP_CONTROL_DEFAULT; |
743 | 743 | ||
744 | icd->ops = &mt9v022_ops; | 744 | icd->ops = &mt9v022_ops; |
745 | icd->x_min = 1; | 745 | icd->rect_max.left = 1; |
746 | icd->y_min = 4; | 746 | icd->rect_max.top = 4; |
747 | icd->x_current = 1; | 747 | icd->rect_max.width = 752; |
748 | icd->y_current = 4; | 748 | icd->rect_max.height = 480; |
749 | icd->width_min = 48; | 749 | icd->rect_current.left = 1; |
750 | icd->width_max = 752; | 750 | icd->rect_current.top = 4; |
751 | icd->height_min = 32; | 751 | icd->width_min = 48; |
752 | icd->height_max = 480; | 752 | icd->height_min = 32; |
753 | icd->y_skip_top = 1; | 753 | icd->y_skip_top = 1; |
754 | 754 | ||
755 | ret = mt9v022_video_probe(icd, client); | 755 | ret = mt9v022_video_probe(icd, client); |
756 | if (ret) { | 756 | if (ret) { |