diff options
Diffstat (limited to 'drivers/media/i2c/mt9t001.c')
-rw-r--r-- | drivers/media/i2c/mt9t001.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/i2c/mt9t001.c b/drivers/media/i2c/mt9t001.c index 422e068f5f1b..d9e9889b579f 100644 --- a/drivers/media/i2c/mt9t001.c +++ b/drivers/media/i2c/mt9t001.c | |||
@@ -333,7 +333,7 @@ static int mt9t001_enum_mbus_code(struct v4l2_subdev *subdev, | |||
333 | if (code->index > 0) | 333 | if (code->index > 0) |
334 | return -EINVAL; | 334 | return -EINVAL; |
335 | 335 | ||
336 | code->code = V4L2_MBUS_FMT_SGRBG10_1X10; | 336 | code->code = MEDIA_BUS_FMT_SGRBG10_1X10; |
337 | return 0; | 337 | return 0; |
338 | } | 338 | } |
339 | 339 | ||
@@ -341,7 +341,7 @@ static int mt9t001_enum_frame_size(struct v4l2_subdev *subdev, | |||
341 | struct v4l2_subdev_fh *fh, | 341 | struct v4l2_subdev_fh *fh, |
342 | struct v4l2_subdev_frame_size_enum *fse) | 342 | struct v4l2_subdev_frame_size_enum *fse) |
343 | { | 343 | { |
344 | if (fse->index >= 8 || fse->code != V4L2_MBUS_FMT_SGRBG10_1X10) | 344 | if (fse->index >= 8 || fse->code != MEDIA_BUS_FMT_SGRBG10_1X10) |
345 | return -EINVAL; | 345 | return -EINVAL; |
346 | 346 | ||
347 | fse->min_width = (MT9T001_WINDOW_WIDTH_DEF + 1) / fse->index; | 347 | fse->min_width = (MT9T001_WINDOW_WIDTH_DEF + 1) / fse->index; |
@@ -792,7 +792,7 @@ static int mt9t001_open(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh) | |||
792 | crop->height = MT9T001_WINDOW_HEIGHT_DEF + 1; | 792 | crop->height = MT9T001_WINDOW_HEIGHT_DEF + 1; |
793 | 793 | ||
794 | format = v4l2_subdev_get_try_format(fh, 0); | 794 | format = v4l2_subdev_get_try_format(fh, 0); |
795 | format->code = V4L2_MBUS_FMT_SGRBG10_1X10; | 795 | format->code = MEDIA_BUS_FMT_SGRBG10_1X10; |
796 | format->width = MT9T001_WINDOW_WIDTH_DEF + 1; | 796 | format->width = MT9T001_WINDOW_WIDTH_DEF + 1; |
797 | format->height = MT9T001_WINDOW_HEIGHT_DEF + 1; | 797 | format->height = MT9T001_WINDOW_HEIGHT_DEF + 1; |
798 | format->field = V4L2_FIELD_NONE; | 798 | format->field = V4L2_FIELD_NONE; |
@@ -917,7 +917,7 @@ static int mt9t001_probe(struct i2c_client *client, | |||
917 | mt9t001->crop.width = MT9T001_WINDOW_WIDTH_DEF + 1; | 917 | mt9t001->crop.width = MT9T001_WINDOW_WIDTH_DEF + 1; |
918 | mt9t001->crop.height = MT9T001_WINDOW_HEIGHT_DEF + 1; | 918 | mt9t001->crop.height = MT9T001_WINDOW_HEIGHT_DEF + 1; |
919 | 919 | ||
920 | mt9t001->format.code = V4L2_MBUS_FMT_SGRBG10_1X10; | 920 | mt9t001->format.code = MEDIA_BUS_FMT_SGRBG10_1X10; |
921 | mt9t001->format.width = MT9T001_WINDOW_WIDTH_DEF + 1; | 921 | mt9t001->format.width = MT9T001_WINDOW_WIDTH_DEF + 1; |
922 | mt9t001->format.height = MT9T001_WINDOW_HEIGHT_DEF + 1; | 922 | mt9t001->format.height = MT9T001_WINDOW_HEIGHT_DEF + 1; |
923 | mt9t001->format.field = V4L2_FIELD_NONE; | 923 | mt9t001->format.field = V4L2_FIELD_NONE; |