summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/mt9m111.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-08-25 16:46:17 +0200
committerGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-08-25 16:46:17 +0200
commit67b6fcc4c0404e94f16820566585bb0ff9891b89 (patch)
treefb03b2da0105a0f0e21a9f2f4231d278743dde20 /linux/drivers/media/video/mt9m111.c
parentcf579adf1e145c22f0c7178612e4781cc8b089cc (diff)
downloadmediapointer-dvb-s2-67b6fcc4c0404e94f16820566585bb0ff9891b89.tar.gz
mediapointer-dvb-s2-67b6fcc4c0404e94f16820566585bb0ff9891b89.tar.bz2
soc-camera: use struct v4l2_rect in struct soc_camera_device
From: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Switch to using struct v4l2_rect in struct soc_camera_device for uniformity and simplicity. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Priority: low
Diffstat (limited to 'linux/drivers/media/video/mt9m111.c')
-rw-r--r--linux/drivers/media/video/mt9m111.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/linux/drivers/media/video/mt9m111.c b/linux/drivers/media/video/mt9m111.c
index 4b00033c4..8770dfd2a 100644
--- a/linux/drivers/media/video/mt9m111.c
+++ b/linux/drivers/media/video/mt9m111.c
@@ -952,16 +952,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) {