diff options
Diffstat (limited to 'drivers/media/platform/atmel/atmel-isc.c')
-rw-r--r-- | drivers/media/platform/atmel/atmel-isc.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/media/platform/atmel/atmel-isc.c b/drivers/media/platform/atmel/atmel-isc.c index 34676409ca08..d89e14524d42 100644 --- a/drivers/media/platform/atmel/atmel-isc.c +++ b/drivers/media/platform/atmel/atmel-isc.c | |||
@@ -335,7 +335,7 @@ static struct isc_format formats_list[] = { | |||
335 | }, | 335 | }, |
336 | }; | 336 | }; |
337 | 337 | ||
338 | struct fmt_config fmt_configs_list[] = { | 338 | static struct fmt_config fmt_configs_list[] = { |
339 | { | 339 | { |
340 | .fourcc = V4L2_PIX_FMT_SBGGR8, | 340 | .fourcc = V4L2_PIX_FMT_SBGGR8, |
341 | .pfe_cfg0_bps = ISC_PFE_CFG0_BPS_EIGHT, | 341 | .pfe_cfg0_bps = ISC_PFE_CFG0_BPS_EIGHT, |
@@ -1417,20 +1417,14 @@ static int isc_g_parm(struct file *file, void *fh, struct v4l2_streamparm *a) | |||
1417 | { | 1417 | { |
1418 | struct isc_device *isc = video_drvdata(file); | 1418 | struct isc_device *isc = video_drvdata(file); |
1419 | 1419 | ||
1420 | if (a->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) | 1420 | return v4l2_g_parm_cap(video_devdata(file), isc->current_subdev->sd, a); |
1421 | return -EINVAL; | ||
1422 | |||
1423 | return v4l2_subdev_call(isc->current_subdev->sd, video, g_parm, a); | ||
1424 | } | 1421 | } |
1425 | 1422 | ||
1426 | static int isc_s_parm(struct file *file, void *fh, struct v4l2_streamparm *a) | 1423 | static int isc_s_parm(struct file *file, void *fh, struct v4l2_streamparm *a) |
1427 | { | 1424 | { |
1428 | struct isc_device *isc = video_drvdata(file); | 1425 | struct isc_device *isc = video_drvdata(file); |
1429 | 1426 | ||
1430 | if (a->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) | 1427 | return v4l2_s_parm_cap(video_devdata(file), isc->current_subdev->sd, a); |
1431 | return -EINVAL; | ||
1432 | |||
1433 | return v4l2_subdev_call(isc->current_subdev->sd, video, s_parm, a); | ||
1434 | } | 1428 | } |
1435 | 1429 | ||
1436 | static int isc_enum_framesizes(struct file *file, void *fh, | 1430 | static int isc_enum_framesizes(struct file *file, void *fh, |