mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[media] v4l2-subdev: drop get/set_crop pad ops
Drop the duplicate get/set_crop pad ops and only use get/set_selection. It makes no sense to have two duplicate ops in the internal subdev API. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
1a023feb9c
commit
05b9cc3eef
2 changed files with 0 additions and 12 deletions
|
@ -283,10 +283,6 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg)
|
|||
if (rval)
|
||||
return rval;
|
||||
|
||||
rval = v4l2_subdev_call(sd, pad, get_crop, subdev_fh, crop);
|
||||
if (rval != -ENOIOCTLCMD)
|
||||
return rval;
|
||||
|
||||
memset(&sel, 0, sizeof(sel));
|
||||
sel.which = crop->which;
|
||||
sel.pad = crop->pad;
|
||||
|
@ -308,10 +304,6 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg)
|
|||
if (rval)
|
||||
return rval;
|
||||
|
||||
rval = v4l2_subdev_call(sd, pad, set_crop, subdev_fh, crop);
|
||||
if (rval != -ENOIOCTLCMD)
|
||||
return rval;
|
||||
|
||||
memset(&sel, 0, sizeof(sel));
|
||||
sel.which = crop->which;
|
||||
sel.pad = crop->pad;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue