All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sylwester Nawrocki <snjw23@gmail.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: linux-media@vger.kernel.org, hverkuil@xs4all.nl,
	laurent.pinchart@ideasonboard.com
Subject: Re: [PATCH 2/4] v4l: Remove "_ACTUAL" from subdev selection API target definition names
Date: Tue, 12 Jun 2012 12:55:18 +0200	[thread overview]
Message-ID: <4FD72016.5040001@gmail.com> (raw)
In-Reply-To: <1339356878-2179-2-git-send-email-sakari.ailus@iki.fi>

Hi Sakari,

thanks for the patch.

On 06/10/2012 09:34 PM, Sakari Ailus wrote:
> The string "_ACTUAL" does not say anything more about the target names. Drop
> it. V4L2 selection API was changed by "V4L: Rename V4L2_SEL_TGT_[CROP/COMPOSE]_ACTIVE to
> V4L2_SEL_TGT_[CROP/COMPOSE]" by Sylwester Nawrocki. This patch does the same
> for the V4L2 subdev API.
> 
> Signed-off-by: Sakari Ailus<sakari.ailus@iki.fi>
> ---
>   Documentation/DocBook/media/v4l/dev-subdev.xml     |   25 +++++++++----------
>   .../media/v4l/vidioc-subdev-g-selection.xml        |   12 ++++----
>   drivers/media/video/omap3isp/ispccdc.c             |    4 +-
>   drivers/media/video/omap3isp/isppreview.c          |    4 +-
>   drivers/media/video/omap3isp/ispresizer.c          |    4 +-
>   drivers/media/video/smiapp/smiapp-core.c           |   22 ++++++++--------
>   drivers/media/video/v4l2-subdev.c                  |    4 +-
>   include/linux/v4l2-subdev.h                        |    4 +-
>   8 files changed, 39 insertions(+), 40 deletions(-)
> 
<snip>
> diff --git a/drivers/media/video/v4l2-subdev.c b/drivers/media/video/v4l2-subdev.c
> index db6e859..cd86f0c 100644
> --- a/drivers/media/video/v4l2-subdev.c
> +++ b/drivers/media/video/v4l2-subdev.c
> @@ -245,7 +245,7 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg)
>   		memset(&sel, 0, sizeof(sel));
>   		sel.which = crop->which;
>   		sel.pad = crop->pad;
> -		sel.target = V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL;
> +		sel.target = V4L2_SUBDEV_SEL_TGT_CROP;
> 
>   		rval = v4l2_subdev_call(
>   			sd, pad, get_selection, subdev_fh,&sel);
> @@ -274,7 +274,7 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg)
>   		memset(&sel, 0, sizeof(sel));
>   		sel.which = crop->which;
>   		sel.pad = crop->pad;
> -		sel.target = V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL;
> +		sel.target = V4L2_SUBDEV_SEL_TGT_CROP;
>   		sel.r = crop->rect;
> 
>   		rval = v4l2_subdev_call(
> diff --git a/include/linux/v4l2-subdev.h b/include/linux/v4l2-subdev.h
> index 812019e..01eee06 100644
> --- a/include/linux/v4l2-subdev.h
> +++ b/include/linux/v4l2-subdev.h
> @@ -128,11 +128,11 @@ struct v4l2_subdev_frame_interval_enum {
>   #define V4L2_SUBDEV_SEL_FLAG_KEEP_CONFIG		(1<<  2)
> 
>   /* active cropping area */
> -#define V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL			0x0000
> +#define V4L2_SUBDEV_SEL_TGT_CROP			0x0000
>   /* cropping bounds */
>   #define V4L2_SUBDEV_SEL_TGT_CROP_BOUNDS			0x0002
>   /* current composing area */
> -#define V4L2_SUBDEV_SEL_TGT_COMPOSE_ACTUAL		0x0100
> +#define V4L2_SUBDEV_SEL_TGT_COMPOSE			0x0100
>   /* composing bounds */
>   #define V4L2_SUBDEV_SEL_TGT_COMPOSE_BOUNDS		0x0102

Unfortunately now there is little chance for these patches to make it 
to v3.5. Thus we most likely need alias definitions like:

#define V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL		V4L2_SUBDEV_SEL_TGT_CROP
#define V4L2_SUBDEV_SEL_TGT_COMPOSE_ACTUAL	V4L2_SUBDEV_SEL_TGT_COMPOSE

And then it might have been moved over to v4l2-common.h

What do you think ?

--
Regards,
Sylwester

  reply	other threads:[~2012-06-12 10:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-10 19:34 [PATCH 0/4] Selection target rename Sakari Ailus
2012-06-10 19:34 ` [PATCH 1/4] V4L: Rename V4L2_SEL_TGT_[CROP/COMPOSE]_ACTIVE to V4L2_SEL_TGT_[CROP/COMPOSE] Sakari Ailus
2012-06-11 11:23   ` Sylwester Nawrocki
2012-06-11 11:46     ` Sakari Ailus
2012-06-10 19:34 ` [PATCH 2/4] v4l: Remove "_ACTUAL" from subdev selection API target definition names Sakari Ailus
2012-06-12 10:55   ` Sylwester Nawrocki [this message]
2012-06-12 22:27     ` Sakari Ailus
2012-06-10 19:34 ` [PATCH 3/4] v4l: Unify selection targets across V4L2 and V4L2 subdev interfaces Sakari Ailus
2012-06-12 10:57   ` Sylwester Nawrocki
2012-06-13 21:11     ` Sakari Ailus
2012-06-13 21:39       ` Sylwester Nawrocki
2012-06-13 21:49         ` Sakari Ailus
2012-06-13 22:30           ` Sylwester Nawrocki
2012-06-10 19:34 ` [PATCH 4/4] v4l: Common documentation for selection targets 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=4FD72016.5040001@gmail.com \
    --to=snjw23@gmail.com \
    --cc=hverkuil@xs4all.nl \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=sakari.ailus@iki.fi \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.