diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-12-04 04:54:53 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-12-22 15:12:36 -0500 |
commit | 05b9cc3eeffcb2b0d6720930fc144058d4ace1aa (patch) | |
tree | 32edfa8d8c55ddbcb3d47e98d8cd7f73e98ed2c3 /drivers/media/v4l2-core | |
parent | 1a023feb9c880bdf61502c5f8ef7b499133de8da (diff) |
[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>
Diffstat (limited to 'drivers/media/v4l2-core')
-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) | |||
283 | if (rval) | 283 | if (rval) |
284 | return rval; | 284 | return rval; |
285 | 285 | ||
286 | rval = v4l2_subdev_call(sd, pad, get_crop, subdev_fh, crop); | ||
287 | if (rval != -ENOIOCTLCMD) | ||
288 | return rval; | ||
289 | |||
290 | memset(&sel, 0, sizeof(sel)); | 286 | memset(&sel, 0, sizeof(sel)); |
291 | sel.which = crop->which; | 287 | sel.which = crop->which; |
292 | sel.pad = crop->pad; | 288 | sel.pad = crop->pad; |
@@ -308,10 +304,6 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
308 | if (rval) | 304 | if (rval) |
309 | return rval; | 305 | return rval; |
310 | 306 | ||
311 | rval = v4l2_subdev_call(sd, pad, set_crop, subdev_fh, crop); | ||
312 | if (rval != -ENOIOCTLCMD) | ||
313 | return rval; | ||
314 | |||
315 | memset(&sel, 0, sizeof(sel)); | 307 | memset(&sel, 0, sizeof(sel)); |
316 | sel.which = crop->which; | 308 | sel.which = crop->which; |
317 | sel.pad = crop->pad; | 309 | sel.pad = crop->pad; |