summaryrefslogtreecommitdiff
path: root/drivers/media/video/mt9m111.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-08-25 18:46:17 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-19 07:18:43 +0400
commita0705b07f1816ae2b85388fcda71de69c221b4b8 (patch)
tree7406da18408564e38645eeaa22ea49324fd1ca6a /drivers/media/video/mt9m111.c
parent4a6110bc50da9a1883bf45614ac1d591253f0457 (diff)
downloadlinux-a0705b07f1816ae2b85388fcda71de69c221b4b8.tar.xz
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/mt9m111.c')
-rw-r--r--drivers/media/video/mt9m111.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/media/video/mt9m111.c b/drivers/media/video/mt9m111.c
index 29f976afd465..45101fd90ce0 100644
--- a/drivers/media/video/mt9m111.c
+++ b/drivers/media/video/mt9m111.c
@@ -948,16 +948,16 @@ static int mt9m111_probe(struct i2c_client *client,
v4l2_i2c_subdev_init(&mt9m111->subdev, client, &mt9m111_subdev_ops);
/* Second stage probe - when a capture adapter is there */
- icd->ops = &mt9m111_ops;
- icd->x_min = MT9M111_MIN_DARK_COLS;
- icd->y_min = MT9M111_MIN_DARK_ROWS;
- icd->x_current = icd->x_min;
- icd->y_current = icd->y_min;
- icd->width_min = MT9M111_MIN_DARK_ROWS;
- icd->width_max = MT9M111_MAX_WIDTH;
- icd->height_min = MT9M111_MIN_DARK_COLS;
- icd->height_max = MT9M111_MAX_HEIGHT;
- icd->y_skip_top = 0;
+ icd->ops = &mt9m111_ops;
+ icd->rect_max.left = MT9M111_MIN_DARK_COLS;
+ icd->rect_max.top = MT9M111_MIN_DARK_ROWS;
+ icd->rect_max.width = MT9M111_MAX_WIDTH;
+ icd->rect_max.height = MT9M111_MAX_HEIGHT;
+ icd->rect_current.left = icd->rect_max.left;
+ icd->rect_current.top = icd->rect_max.top;
+ icd->width_min = MT9M111_MIN_DARK_ROWS;
+ icd->height_min = MT9M111_MIN_DARK_COLS;
+ icd->y_skip_top = 0;
ret = mt9m111_video_probe(icd, client);
if (ret) {