diff options
Diffstat (limited to 'drivers/media/platform/s3c-camif/camif-capture.c')
-rw-r--r-- | drivers/media/platform/s3c-camif/camif-capture.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/platform/s3c-camif/camif-capture.c b/drivers/media/platform/s3c-camif/camif-capture.c index 54479d60cc0d..f6a61b9ceff4 100644 --- a/drivers/media/platform/s3c-camif/camif-capture.c +++ b/drivers/media/platform/s3c-camif/camif-capture.c | |||
@@ -1219,7 +1219,7 @@ static const u32 camif_mbus_formats[] = { | |||
1219 | */ | 1219 | */ |
1220 | 1220 | ||
1221 | static int s3c_camif_subdev_enum_mbus_code(struct v4l2_subdev *sd, | 1221 | static int s3c_camif_subdev_enum_mbus_code(struct v4l2_subdev *sd, |
1222 | struct v4l2_subdev_fh *fh, | 1222 | struct v4l2_subdev_pad_config *cfg, |
1223 | struct v4l2_subdev_mbus_code_enum *code) | 1223 | struct v4l2_subdev_mbus_code_enum *code) |
1224 | { | 1224 | { |
1225 | if (code->index >= ARRAY_SIZE(camif_mbus_formats)) | 1225 | if (code->index >= ARRAY_SIZE(camif_mbus_formats)) |
@@ -1230,14 +1230,14 @@ static int s3c_camif_subdev_enum_mbus_code(struct v4l2_subdev *sd, | |||
1230 | } | 1230 | } |
1231 | 1231 | ||
1232 | static int s3c_camif_subdev_get_fmt(struct v4l2_subdev *sd, | 1232 | static int s3c_camif_subdev_get_fmt(struct v4l2_subdev *sd, |
1233 | struct v4l2_subdev_fh *fh, | 1233 | struct v4l2_subdev_pad_config *cfg, |
1234 | struct v4l2_subdev_format *fmt) | 1234 | struct v4l2_subdev_format *fmt) |
1235 | { | 1235 | { |
1236 | struct camif_dev *camif = v4l2_get_subdevdata(sd); | 1236 | struct camif_dev *camif = v4l2_get_subdevdata(sd); |
1237 | struct v4l2_mbus_framefmt *mf = &fmt->format; | 1237 | struct v4l2_mbus_framefmt *mf = &fmt->format; |
1238 | 1238 | ||
1239 | if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) { | 1239 | if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) { |
1240 | mf = v4l2_subdev_get_try_format(fh, fmt->pad); | 1240 | mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); |
1241 | fmt->format = *mf; | 1241 | fmt->format = *mf; |
1242 | return 0; | 1242 | return 0; |
1243 | } | 1243 | } |
@@ -1297,7 +1297,7 @@ static void __camif_subdev_try_format(struct camif_dev *camif, | |||
1297 | } | 1297 | } |
1298 | 1298 | ||
1299 | static int s3c_camif_subdev_set_fmt(struct v4l2_subdev *sd, | 1299 | static int s3c_camif_subdev_set_fmt(struct v4l2_subdev *sd, |
1300 | struct v4l2_subdev_fh *fh, | 1300 | struct v4l2_subdev_pad_config *cfg, |
1301 | struct v4l2_subdev_format *fmt) | 1301 | struct v4l2_subdev_format *fmt) |
1302 | { | 1302 | { |
1303 | struct camif_dev *camif = v4l2_get_subdevdata(sd); | 1303 | struct camif_dev *camif = v4l2_get_subdevdata(sd); |
@@ -1325,7 +1325,7 @@ static int s3c_camif_subdev_set_fmt(struct v4l2_subdev *sd, | |||
1325 | __camif_subdev_try_format(camif, mf, fmt->pad); | 1325 | __camif_subdev_try_format(camif, mf, fmt->pad); |
1326 | 1326 | ||
1327 | if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) { | 1327 | if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) { |
1328 | mf = v4l2_subdev_get_try_format(fh, fmt->pad); | 1328 | mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); |
1329 | *mf = fmt->format; | 1329 | *mf = fmt->format; |
1330 | mutex_unlock(&camif->lock); | 1330 | mutex_unlock(&camif->lock); |
1331 | return 0; | 1331 | return 0; |
@@ -1364,7 +1364,7 @@ static int s3c_camif_subdev_set_fmt(struct v4l2_subdev *sd, | |||
1364 | } | 1364 | } |
1365 | 1365 | ||
1366 | static int s3c_camif_subdev_get_selection(struct v4l2_subdev *sd, | 1366 | static int s3c_camif_subdev_get_selection(struct v4l2_subdev *sd, |
1367 | struct v4l2_subdev_fh *fh, | 1367 | struct v4l2_subdev_pad_config *cfg, |
1368 | struct v4l2_subdev_selection *sel) | 1368 | struct v4l2_subdev_selection *sel) |
1369 | { | 1369 | { |
1370 | struct camif_dev *camif = v4l2_get_subdevdata(sd); | 1370 | struct camif_dev *camif = v4l2_get_subdevdata(sd); |
@@ -1377,7 +1377,7 @@ static int s3c_camif_subdev_get_selection(struct v4l2_subdev *sd, | |||
1377 | return -EINVAL; | 1377 | return -EINVAL; |
1378 | 1378 | ||
1379 | if (sel->which == V4L2_SUBDEV_FORMAT_TRY) { | 1379 | if (sel->which == V4L2_SUBDEV_FORMAT_TRY) { |
1380 | sel->r = *v4l2_subdev_get_try_crop(fh, sel->pad); | 1380 | sel->r = *v4l2_subdev_get_try_crop(sd, cfg, sel->pad); |
1381 | return 0; | 1381 | return 0; |
1382 | } | 1382 | } |
1383 | 1383 | ||
@@ -1451,7 +1451,7 @@ static void __camif_try_crop(struct camif_dev *camif, struct v4l2_rect *r) | |||
1451 | } | 1451 | } |
1452 | 1452 | ||
1453 | static int s3c_camif_subdev_set_selection(struct v4l2_subdev *sd, | 1453 | static int s3c_camif_subdev_set_selection(struct v4l2_subdev *sd, |
1454 | struct v4l2_subdev_fh *fh, | 1454 | struct v4l2_subdev_pad_config *cfg, |
1455 | struct v4l2_subdev_selection *sel) | 1455 | struct v4l2_subdev_selection *sel) |
1456 | { | 1456 | { |
1457 | struct camif_dev *camif = v4l2_get_subdevdata(sd); | 1457 | struct camif_dev *camif = v4l2_get_subdevdata(sd); |
@@ -1465,7 +1465,7 @@ static int s3c_camif_subdev_set_selection(struct v4l2_subdev *sd, | |||
1465 | __camif_try_crop(camif, &sel->r); | 1465 | __camif_try_crop(camif, &sel->r); |
1466 | 1466 | ||
1467 | if (sel->which == V4L2_SUBDEV_FORMAT_TRY) { | 1467 | if (sel->which == V4L2_SUBDEV_FORMAT_TRY) { |
1468 | *v4l2_subdev_get_try_crop(fh, sel->pad) = sel->r; | 1468 | *v4l2_subdev_get_try_crop(sd, cfg, sel->pad) = sel->r; |
1469 | } else { | 1469 | } else { |
1470 | unsigned long flags; | 1470 | unsigned long flags; |
1471 | unsigned int i; | 1471 | unsigned int i; |