Linux Media Controller development
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org, Hans Verkuil <hans.verkuil@cisco.com>
Subject: Re: [PATCH 2/2] v4l2-subdev: drop get/set_crop pad ops
Date: Tue, 02 Dec 2014 14:33:32 +0200	[thread overview]
Message-ID: <1497494.cKnlhkNNR9@avalon> (raw)
In-Reply-To: <1417522901-43604-2-git-send-email-hverkuil@xs4all.nl>

Hi Hans,

On Tuesday 02 December 2014 13:21:41 Hans Verkuil wrote:
> From: Hans Verkuil <hans.verkuil@cisco.com>
> 
> 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.

Totally agreed, thank you for working on this.

> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  drivers/media/v4l2-core/v4l2-subdev.c | 8 --------
>  include/media/v4l2-subdev.h           | 4 ----
>  2 files changed, 12 deletions(-)
> 
> diff --git a/drivers/media/v4l2-core/v4l2-subdev.c
> b/drivers/media/v4l2-core/v4l2-subdev.c index 543631c..19a034e 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;
> diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
> index 5860292..b052184 100644
> --- a/include/media/v4l2-subdev.h
> +++ b/include/media/v4l2-subdev.h
> @@ -503,10 +503,6 @@ struct v4l2_subdev_pad_ops {
>  		       struct v4l2_subdev_format *format);
>  	int (*set_fmt)(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh,
>  		       struct v4l2_subdev_format *format);
> -	int (*set_crop)(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh,
> -		       struct v4l2_subdev_crop *crop);
> -	int (*get_crop)(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh,
> -		       struct v4l2_subdev_crop *crop);
>  	int (*get_selection)(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh,
>  			     struct v4l2_subdev_selection *sel);
>  	int (*set_selection)(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh,

-- 
Regards,

Laurent Pinchart


  reply	other threads:[~2014-12-02 12:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-02 12:21 [PATCH 1/2] v4l2 subdevs: replace get/set_crop by get/set_selection Hans Verkuil
2014-12-02 12:21 ` [PATCH 2/2] v4l2-subdev: drop get/set_crop pad ops Hans Verkuil
2014-12-02 12:33   ` Laurent Pinchart [this message]
2014-12-02 12:44 ` [PATCH 1/2] v4l2 subdevs: replace get/set_crop by get/set_selection Laurent Pinchart
2014-12-03  0:50 ` Prabhakar Lad
2014-12-03 11:06 ` Sakari Ailus
2014-12-03 14:04   ` Hans Verkuil
2014-12-08  0:17   ` Laurent Pinchart
2014-12-08  1:27     ` Sakari Ailus
2014-12-03 11:14 ` Sylwester Nawrocki
2014-12-03 11:17   ` Hans Verkuil
2014-12-03 11:49     ` Sylwester Nawrocki
2014-12-03 12:37       ` Hans Verkuil
2014-12-03 13:07     ` Laurent Pinchart
2014-12-03 11:19   ` Sakari Ailus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1497494.cKnlhkNNR9@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=hans.verkuil@cisco.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox