aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/mt9m111.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-08-25 10:46:17 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-18 23:18:43 -0400
commita0705b07f1816ae2b85388fcda71de69c221b4b8 (patch)
tree7406da18408564e38645eeaa22ea49324fd1ca6a /drivers/media/video/mt9m111.c
parent4a6110bc50da9a1883bf45614ac1d591253f0457 (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/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,
948 v4l2_i2c_subdev_init(&mt9m111->subdev, client, &mt9m111_subdev_ops); 948 v4l2_i2c_subdev_init(&mt9m111->subdev, client, &mt9m111_subdev_ops);
949 949
950 /* Second stage probe - when a capture adapter is there */ 950 /* Second stage probe - when a capture adapter is there */
951 icd->ops = &mt9m111_ops; 951 icd->ops = &mt9m111_ops;
952 icd->x_min = MT9M111_MIN_DARK_COLS; 952 icd->rect_max.left = MT9M111_MIN_DARK_COLS;
953 icd->y_min = MT9M111_MIN_DARK_ROWS; 953 icd->rect_max.top = MT9M111_MIN_DARK_ROWS;
954 icd->x_current = icd->x_min; 954 icd->rect_max.width = MT9M111_MAX_WIDTH;
955 icd->y_current = icd->y_min; 955 icd->rect_max.height = MT9M111_MAX_HEIGHT;
956 icd->width_min = MT9M111_MIN_DARK_ROWS; 956 icd->rect_current.left = icd->rect_max.left;
957 icd->width_max = MT9M111_MAX_WIDTH; 957 icd->rect_current.top = icd->rect_max.top;
958 icd->height_min = MT9M111_MIN_DARK_COLS; 958 icd->width_min = MT9M111_MIN_DARK_ROWS;
959 icd->height_max = MT9M111_MAX_HEIGHT; 959 icd->height_min = MT9M111_MIN_DARK_COLS;
960 icd->y_skip_top = 0; 960 icd->y_skip_top = 0;
961 961
962 ret = mt9m111_video_probe(icd, client); 962 ret = mt9m111_video_probe(icd, client);
963 if (ret) { 963 if (ret) {