diff options
| author | Hans Verkuil <[email protected]> | 2014-12-04 09:54:53 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2014-12-22 20:12:36 +0000 |
| commit | 05b9cc3eeffcb2b0d6720930fc144058d4ace1aa (patch) | |
| tree | 32edfa8d8c55ddbcb3d47e98d8cd7f73e98ed2c3 /drivers/media/v4l2-core/v4l2-subdev.c | |
| parent | [media] v4l2 subdevs: replace get/set_crop by get/set_selection (diff) | |
| download | kernel-05b9cc3eeffcb2b0d6720930fc144058d4ace1aa.tar.gz kernel-05b9cc3eeffcb2b0d6720930fc144058d4ace1aa.zip | |
[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 <[email protected]>
Acked-by: Laurent Pinchart <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-subdev.c')
| -rw-r--r-- | drivers/media/v4l2-core/v4l2-subdev.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/media/v4l2-core/v4l2-subdev.c b/drivers/media/v4l2-core/v4l2-subdev.c index 543631c3557a..19a034e79be4 100644 --- a/drivers/media/v4l2-core/v4l2-subdev.c +++ b/drivers/media/v4l2-core/v4l2-subdev.c @@ -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; |
