media: convert g/s_parm to g/s_frame_interval in subdevs
Convert all g/s_parm calls to g/s_frame_interval. This allows us to remove the g/s_parm ops since those are a duplicate of g/s_frame_interval. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
672de9a79c
commit
4471109e38
@@ -1417,20 +1417,14 @@ static int isc_g_parm(struct file *file, void *fh, struct v4l2_streamparm *a)
|
||||
{
|
||||
struct isc_device *isc = video_drvdata(file);
|
||||
|
||||
if (a->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
|
||||
return -EINVAL;
|
||||
|
||||
return v4l2_subdev_call(isc->current_subdev->sd, video, g_parm, a);
|
||||
return v4l2_g_parm_cap(video_devdata(file), isc->current_subdev->sd, a);
|
||||
}
|
||||
|
||||
static int isc_s_parm(struct file *file, void *fh, struct v4l2_streamparm *a)
|
||||
{
|
||||
struct isc_device *isc = video_drvdata(file);
|
||||
|
||||
if (a->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
|
||||
return -EINVAL;
|
||||
|
||||
return v4l2_subdev_call(isc->current_subdev->sd, video, s_parm, a);
|
||||
return v4l2_s_parm_cap(video_devdata(file), isc->current_subdev->sd, a);
|
||||
}
|
||||
|
||||
static int isc_enum_framesizes(struct file *file, void *fh,
|
||||
|
Reference in New Issue
Block a user